home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 January / macpower199701.bin / AMUG / Programming_10 / Videotoolbox 96-08-22-c.sit / VideoToolbox / VideoToolboxSources / SetEntriesQuickly.c < prev    next >
MacBinary  |  1996-03-05  |  52.4 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: SetEntriesQuickly.c

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Tue Mar 5 02:01:17 1996, modified Tue Mar 5 02:01:17 1996, creator 'CWIE', type ASCII, 51289 bytes "SetEntriesQuickly.c" , at 0xc8d9 2092 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 13 53 65 74 45 6e 74 | 72 69 65 73 51 75 69 63 |..SetEnt|riesQuic|
|00000010| 6b 6c 79 2e 63 00 00 00 | 00 00 00 00 00 00 00 00 |kly.c...|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 c8 59 00 | 00 08 2c ad 61 97 3d ad |......Y.|..,.a.=.|
|00000060| 61 97 3d 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |a.=.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 02 26 00 00 |........|.....&..|
|00000080| 2f 2a 0d 53 65 74 45 6e | 74 72 69 65 73 51 75 69 |/*.SetEn|triesQui|
|00000090| 63 6b 6c 79 2e 63 0d 0d | 53 65 74 45 6e 74 72 69 |ckly.c..|SetEntri|
|000000a0| 65 73 51 75 69 63 6b 6c | 79 20 6c 6f 61 64 73 20 |esQuickl|y loads |
|000000b0| 79 6f 75 72 20 76 69 64 | 65 6f 20 63 61 72 64 d5 |your vid|eo card.|
|000000c0| 73 20 63 6c 75 74 20 61 | 73 20 71 75 69 63 6b 6c |s clut a|s quickl|
|000000d0| 79 20 61 73 20 70 6f 73 | 73 69 62 6c 65 2e 0d 0d |y as pos|sible...|
|000000e0| 53 65 74 45 6e 74 72 69 | 65 73 51 75 69 63 6b 6c |SetEntri|esQuickl|
|000000f0| 79 20 77 61 73 20 77 72 | 69 74 74 65 6e 20 62 79 |y was wr|itten by|
|00000100| 20 6d 61 6e 79 20 70 65 | 6f 70 6c 65 2c 20 61 6e | many pe|ople, an|
|00000110| 64 20 74 68 65 20 d2 66 | 69 6e 61 6c d3 20 72 65 |d the .f|inal. re|
|00000120| 73 75 6c 74 20 68 61 73 | 20 6e 6f 74 0d 62 65 65 |sult has| not.bee|
|00000130| 6e 20 74 65 73 74 65 64 | 20 6f 6e 20 61 6c 6c 20 |n tested| on all |
|00000140| 74 68 65 20 63 6f 6d 70 | 75 74 65 72 73 20 61 6e |the comp|uters an|
|00000150| 64 20 76 69 64 65 6f 20 | 64 65 76 69 63 65 73 20 |d video |devices |
|00000160| 69 74 d5 73 20 6d 65 61 | 6e 74 20 74 6f 20 73 75 |it.s mea|nt to su|
|00000170| 70 70 6f 72 74 2e 20 54 | 68 65 0d 62 65 73 74 20 |pport. T|he.best |
|00000180| 74 65 73 74 20 69 73 20 | 73 69 6d 70 6c 79 20 74 |test is |simply t|
|00000190| 6f 20 72 75 6e 20 54 69 | 6d 65 56 69 64 65 6f 2c |o run Ti|meVideo,|
|000001a0| 20 77 68 69 63 68 20 67 | 69 76 65 73 20 69 74 20 | which g|ives it |
|000001b0| 61 20 74 68 6f 72 6f 75 | 67 68 20 77 6f 72 6b 6f |a thorou|gh worko|
|000001c0| 75 74 20 6f 6e 20 61 6c | 6c 0d 6f 66 20 79 6f 75 |ut on al|l.of you|
|000001d0| 72 20 63 6f 6d 70 75 74 | 65 72 d5 73 20 76 69 64 |r comput|er.s vid|
|000001e0| 65 6f 20 64 65 76 69 63 | 65 73 2e 20 50 6c 65 61 |eo devic|es. Plea|
|000001f0| 73 65 20 73 65 6e 64 20 | 74 68 65 20 72 65 70 6f |se send |the repo|
|00000200| 72 74 20 d2 54 69 6d 65 | 56 69 64 65 6f 20 72 65 |rt .Time|Video re|
|00000210| 73 75 6c 74 73 d3 20 74 | 6f 0d 64 65 6e 69 73 40 |sults. t|o.denis@|
|00000220| 78 70 2e 70 73 79 63 68 | 2e 6e 79 75 2e 65 64 75 |xp.psych|.nyu.edu|
|00000230| 2c 20 61 6e 64 20 49 d5 | 6c 6c 20 61 64 64 20 79 |, and I.|ll add y|
|00000240| 6f 75 72 20 74 65 73 74 | 20 72 65 73 75 6c 74 73 |our test| results|
|00000250| 20 74 6f 20 d2 56 69 64 | 65 6f 20 62 75 67 73 d3 | to .Vid|eo bugs.|
|00000260| 20 61 6e 64 20 74 68 65 | 0d 66 6f 6c 6c 6f 77 69 | and the|.followi|
|00000270| 6e 67 20 6c 69 73 74 2e | 0d 0d 56 49 44 45 4f 20 |ng list.|..VIDEO |
|00000280| 44 45 56 49 43 45 53 20 | 43 45 52 54 49 46 49 45 |DEVICES |CERTIFIE|
|00000290| 44 20 62 79 20 54 69 6d | 65 56 69 64 65 6f 20 61 |D by Tim|eVideo a|
|000002a0| 73 20 63 6f 6d 70 61 74 | 69 62 6c 65 20 77 69 74 |s compat|ible wit|
|000002b0| 68 20 53 65 74 45 6e 74 | 72 69 65 73 51 75 69 63 |h SetEnt|riesQuic|
|000002c0| 6b 6c 79 28 29 3a 0d 31 | 2e 20 4f 6b 3a 0d d2 4d |kly():.1|. Ok:..M|
|000002d0| 61 63 69 6e 74 6f 73 68 | 20 44 69 73 70 6c 61 79 |acintosh| Display|
|000002e0| 20 43 61 72 64 20 38 a5 | 32 34 20 47 43 d3 20 28 | Card 8.|24 GC. (|
|000002f0| 2e 44 69 73 70 6c 61 79 | 5f 56 69 64 65 6f 5f 41 |.Display|_Video_A|
|00000300| 70 70 6c 65 5f 4d 44 43 | 47 43 29 0d 51 75 61 64 |pple_MDC|GC).Quad|
|00000310| 72 61 20 39 30 30 20 d2 | 4d 61 63 69 6e 74 6f 73 |ra 900 .|Macintos|
|00000320| 68 20 43 20 42 75 69 6c | 74 2d 49 6e 20 56 69 64 |h C Buil|t-In Vid|
|00000330| 65 6f d3 20 28 6f 6e 6c | 79 20 74 65 73 74 65 64 |eo. (onl|y tested|
|00000340| 20 69 6e 20 31 2c 32 2c | 34 2c 38 2d 62 69 74 20 | in 1,2,|4,8-bit |
|00000350| 6d 6f 64 65 73 29 0d 51 | 75 61 64 72 61 20 39 35 |modes).Q|uadra 95|
|00000360| 30 20 d2 4d 61 63 69 6e | 74 6f 73 68 20 47 20 42 |0 .Macin|tosh G B|
|00000370| 75 69 6c 74 2d 49 6e 20 | 56 69 64 65 6f d3 20 28 |uilt-In |Video. (|
|00000380| 6f 6e 6c 79 20 74 65 73 | 74 65 64 20 69 6e 20 31 |only tes|ted in 1|
|00000390| 2c 32 2c 34 2c 38 2c 31 | 36 2d 62 69 74 20 6d 6f |,2,4,8,1|6-bit mo|
|000003a0| 64 65 73 29 0d 0d 32 2e | 20 4f 6b 20 77 68 65 6e |des)..2.| Ok when|
|000003b0| 20 6c 6f 61 64 69 6e 67 | 20 77 68 6f 6c 65 20 63 | loading| whole c|
|000003c0| 6c 75 74 20 61 74 20 6f | 6e 63 65 2c 20 62 75 74 |lut at o|nce, but|
|000003d0| 20 66 61 69 6c 20 72 65 | 61 64 2d 62 61 63 6b 20 | fail re|ad-back |
|000003e0| 74 65 73 74 20 77 68 65 | 6e 20 6c 6f 61 64 69 6e |test whe|n loadin|
|000003f0| 67 20 6f 6e 65 20 0d 65 | 6e 74 72 79 20 61 74 20 |g one .e|ntry at |
|00000400| 61 20 74 69 6d 65 20 28 | 61 74 20 6c 65 61 73 74 |a time (|at least|
|00000410| 20 6f 6e 20 74 68 65 20 | 51 75 61 64 72 61 20 38 | on the |Quadra 8|
|00000420| 34 30 61 76 29 2e 20 42 | 75 67 20 72 65 70 6f 72 |40av). B|ug repor|
|00000430| 74 65 64 20 62 79 20 4b | 65 6e 20 41 6c 65 78 61 |ted by K|en Alexa|
|00000440| 6e 64 65 72 20 0d 3c 55 | 31 32 39 34 30 40 55 49 |nder .<U|12940@UI|
|00000450| 43 56 4d 2e 42 49 54 4e | 45 54 3e 20 61 6e 64 20 |CVM.BITN|ET> and |
|00000460| 57 65 69 20 58 69 65 2e | 20 54 68 69 73 20 70 72 |Wei Xie.| This pr|
|00000470| 6f 62 6c 65 6d 20 64 6f | 65 73 20 6e 6f 74 20 6f |oblem do|es not o|
|00000480| 63 63 75 72 20 6f 6e 20 | 6d 6f 73 74 20 4d 61 63 |ccur on |most Mac|
|00000490| 73 2e 0d 41 70 70 6c 65 | 20 38 a5 32 34 20 22 4d |s..Apple| 8.24 "M|
|000004a0| 61 63 69 6e 74 6f 73 68 | 20 44 69 73 70 6c 61 79 |acintosh| Display|
|000004b0| 20 43 61 72 64 22 20 28 | 2e 44 69 73 70 6c 61 79 | Card" (|.Display|
|000004c0| 5f 56 69 64 65 6f 5f 41 | 70 70 6c 65 5f 4d 44 43 |_Video_A|pple_MDC|
|000004d0| 20 76 65 72 73 69 6f 6e | 20 32 37 32 29 0d 0d 33 | version| 272)..3|
|000004e0| 2e 20 4f 6b 2c 20 65 78 | 63 65 70 74 20 66 6f 72 |. Ok, ex|cept for|
|000004f0| 20 76 69 73 69 62 6c 65 | 20 68 61 73 68 20 28 64 | visible| hash (d|
|00000500| 79 6e 61 6d 69 63 20 62 | 6c 61 63 6b 20 73 70 65 |ynamic b|lack spe|
|00000510| 63 6b 73 29 20 64 75 72 | 69 6e 67 20 63 6c 75 74 |cks) dur|ing clut|
|00000520| 20 6c 6f 61 64 69 6e 67 | 3a 0d 41 70 70 6c 65 20 | loading|:.Apple |
|00000530| d2 4d 61 63 20 49 49 20 | 48 69 67 68 2d 52 65 73 |.Mac II |High-Res|
|00000540| 6f 6c 75 74 69 6f 6e 20 | 56 69 64 65 6f 20 43 61 |olution |Video Ca|
|00000550| 72 64 d3 20 28 2e 44 69 | 73 70 6c 61 79 5f 56 69 |rd. (.Di|splay_Vi|
|00000560| 64 65 6f 5f 41 70 70 6c | 65 5f 48 52 56 43 29 0d |deo_Appl|e_HRVC).|
|00000570| 41 70 70 6c 65 20 d2 54 | 6f 62 79 20 66 72 61 6d |Apple .T|oby fram|
|00000580| 65 20 62 75 66 66 65 72 | 20 63 61 72 64 d3 20 28 |e buffer| card. (|
|00000590| 2e 44 69 73 70 6c 61 79 | 5f 56 69 64 65 6f 5f 41 |.Display|_Video_A|
|000005a0| 70 70 6c 65 5f 54 46 42 | 20 76 65 72 73 69 6f 6e |pple_TFB| version|
|000005b0| 20 35 29 0d 4d 61 63 20 | 49 49 63 69 20 d2 4d 61 | 5).Mac |IIci .Ma|
|000005c0| 63 69 6e 74 6f 73 68 20 | 49 49 20 42 75 69 6c 74 |cintosh |II Built|
|000005d0| 2d 49 6e 20 56 69 64 65 | 6f d3 20 28 2e 44 69 73 |-In Vide|o. (.Dis|
|000005e0| 70 6c 61 79 5f 56 69 64 | 65 6f 5f 41 70 70 6c 65 |play_Vid|eo_Apple|
|000005f0| 5f 52 42 56 31 29 0d 0d | 34 2e 20 44 6f 6e 27 74 |_RBV1)..|4. Don't|
|00000600| 20 77 6f 72 6b 20 28 68 | 6f 70 65 66 75 6c 6c 79 | work (h|opefully|
|00000610| 20 77 69 6c 6c 20 62 65 | 20 66 69 78 65 64 20 73 | will be| fixed s|
|00000620| 6f 6f 6e 29 3a 0d 52 61 | 73 74 65 72 4f 70 73 20 |oon):.Ra|sterOps |
|00000630| d2 50 72 6f 43 6f 6c 6f | 72 20 33 32 d3 20 28 2e |.ProColo|r 32. (.|
|00000640| 52 61 73 74 65 72 4f 70 | 73 20 31 2e 30 20 33 32 |RasterOp|s 1.0 32|
|00000650| 58 4c 20 56 69 64 65 6f | 20 44 72 69 76 65 72 20 |XL Video| Driver |
|00000660| 76 65 72 73 69 6f 6e 20 | 39 33 32 37 29 0d 0d 43 |version |9327)..C|
|00000670| 4f 4e 54 52 49 42 55 54 | 4f 52 53 20 54 4f 20 54 |ONTRIBUT|ORS TO T|
|00000680| 48 49 53 20 4c 49 53 54 | 0d 4b 65 6e 20 41 6c 65 |HIS LIST|.Ken Ale|
|00000690| 78 61 6e 64 65 72 20 3c | 55 31 32 39 34 30 40 55 |xander <|U12940@U|
|000006a0| 49 43 56 4d 2e 42 49 54 | 4e 45 54 3e 20 28 62 75 |ICVM.BIT|NET> (bu|
|000006b0| 67 20 69 6e 20 53 65 74 | 45 6e 74 72 69 65 73 51 |g in Set|EntriesQ|
|000006c0| 75 69 63 6b 6c 79 29 0d | 4b 79 6c 65 20 43 61 76 |uickly).|Kyle Cav|
|000006d0| 65 2c 20 63 61 76 65 6b | 72 40 63 74 72 76 61 78 |e, cavek|r@ctrvax|
|000006e0| 2e 76 61 6e 64 65 72 62 | 69 6c 74 2e 65 64 75 20 |.vanderb|ilt.edu |
|000006f0| 28 51 75 61 64 72 61 20 | 37 30 30 29 0d 57 65 69 |(Quadra |700).Wei|
|00000700| 20 58 69 65 20 28 62 75 | 67 20 69 6e 20 53 65 74 | Xie (bu|g in Set|
|00000710| 45 6e 74 72 69 65 73 51 | 75 69 63 6b 6c 79 20 66 |EntriesQ|uickly f|
|00000720| 6f 72 20 41 70 70 6c 65 | 20 38 a5 32 34 20 69 6e |or Apple| 8.24 in|
|00000730| 20 51 75 61 64 72 61 20 | 38 34 30 41 56 29 0d 0d | Quadra |840AV)..|
|00000740| 53 6f 6d 65 20 4d 61 63 | 69 6e 74 6f 73 68 20 76 |Some Mac|intosh v|
|00000750| 69 64 65 6f 20 64 72 69 | 76 65 72 73 20 61 72 65 |ideo dri|vers are|
|00000760| 20 70 6f 6f 72 6c 79 20 | 77 72 69 74 74 65 6e 3b | poorly |written;|
|00000770| 20 74 68 65 79 20 74 61 | 6b 65 20 74 6f 6f 20 6c | they ta|ke too l|
|00000780| 6f 6e 67 20 28 6d 6f 72 | 65 20 74 68 61 6e 20 61 |ong (mor|e than a|
|00000790| 0d 66 72 61 6d 65 20 74 | 69 6d 65 29 20 74 6f 20 |.frame t|ime) to |
|000007a0| 6c 6f 61 64 20 74 68 65 | 20 63 6c 75 74 2e 20 54 |load the| clut. T|
|000007b0| 68 69 73 20 69 73 20 6d | 61 6b 65 73 20 69 74 20 |his is m|akes it |
|000007c0| 69 6d 70 6f 73 73 69 62 | 6c 65 20 74 6f 20 64 6f |impossib|le to do|
|000007d0| 20 63 6c 75 74 20 61 6e | 69 6d 61 74 69 6f 6e 0d | clut an|imation.|
|000007e0| 66 6f 72 20 74 65 6d 70 | 6f 72 61 6c 20 6d 6f 64 |for temp|oral mod|
|000007f0| 75 6c 61 74 69 6f 6e 20 | 65 74 63 2e 2c 20 66 6f |ulation |etc., fo|
|00000800| 72 20 77 68 69 63 68 20 | 6f 6e 65 20 6e 65 65 64 |r which |one need|
|00000810| 73 20 74 6f 20 62 65 20 | 61 62 6c 65 20 74 6f 20 |s to be |able to |
|00000820| 72 65 6c 6f 61 64 20 74 | 68 65 20 63 6c 75 74 0d |reload t|he clut.|
|00000830| 6f 6e 20 65 61 63 68 20 | 66 72 61 6d 65 2e 20 41 |on each |frame. A|
|00000840| 74 20 6f 6e 65 20 74 69 | 6d 65 2c 20 6d 61 6e 79 |t one ti|me, many|
|00000850| 20 6f 66 20 75 73 20 74 | 68 6f 75 67 68 74 20 74 | of us t|hought t|
|00000860| 68 61 74 20 74 68 65 20 | 6c 69 6d 69 74 61 74 69 |hat the |limitati|
|00000870| 6f 6e 20 77 61 73 20 69 | 6e 0d 68 61 72 64 77 61 |on was i|n.hardwa|
|00000880| 72 65 2c 20 69 6e 20 74 | 68 65 20 52 41 4d 44 41 |re, in t|he RAMDA|
|00000890| 43 2c 20 62 75 74 20 77 | 65 20 77 65 72 65 20 77 |C, but w|e were w|
|000008a0| 72 6f 6e 67 2e 20 52 61 | 79 6e 61 6c 64 20 43 6f |rong. Ra|ynald Co|
|000008b0| 6d 70 74 6f 69 73 20 64 | 69 73 61 73 73 65 6d 62 |mptois d|isassemb|
|000008c0| 6c 65 64 0d 73 65 76 65 | 72 61 6c 20 76 69 64 65 |led.seve|ral vide|
|000008d0| 6f 20 64 72 69 76 65 72 | 73 20 61 6e 64 20 77 72 |o driver|s and wr|
|000008e0| 6f 74 65 20 68 69 73 20 | 6f 77 6e 20 70 72 6f 67 |ote his |own prog|
|000008f0| 72 61 6d 73 20 74 6f 20 | 6c 6f 61 64 20 74 68 65 |rams to |load the|
|00000900| 20 63 6c 75 74 20 71 75 | 69 63 6b 6c 79 2c 20 61 | clut qu|ickly, a|
|00000910| 6e 64 0d 68 69 73 20 70 | 72 6f 67 72 61 6d 73 20 |nd.his p|rograms |
|00000920| 6d 61 6e 61 67 65 20 74 | 6f 20 64 6f 20 69 74 20 |manage t|o do it |
|00000930| 77 69 74 68 69 6e 20 61 | 20 66 72 61 6d 65 2e 20 |within a| frame. |
|00000940| 52 61 79 6e 61 6c 64 20 | 77 61 73 20 6b 69 6e 64 |Raynald |was kind|
|00000950| 20 65 6e 6f 75 67 68 20 | 74 6f 20 73 68 61 72 65 | enough |to share|
|00000960| 0d 68 69 73 20 63 6f 64 | 65 20 77 69 74 68 20 6d |.his cod|e with m|
|00000970| 65 2e 20 49 20 70 61 73 | 73 65 64 20 69 74 20 6f |e. I pas|sed it o|
|00000980| 6e 20 74 6f 20 50 65 74 | 65 72 20 4c 65 6e 6e 69 |n to Pet|er Lenni|
|00000990| 65 20 61 6e 64 20 42 69 | 6c 6c 20 48 61 61 6b 65 |e and Bi|ll Haake|
|000009a0| 2c 20 77 68 6f 20 70 6f | 6c 69 73 68 65 64 0d 69 |, who po|lished.i|
|000009b0| 74 2c 20 6d 61 6b 69 6e | 67 20 69 74 20 63 6f 6d |t, makin|g it com|
|000009c0| 70 61 74 69 62 6c 65 20 | 77 69 74 68 20 74 68 65 |patible |with the|
|000009d0| 20 36 38 30 34 30 20 70 | 72 6f 63 65 73 73 6f 72 | 68040 p|rocessor|
|000009e0| 2c 20 61 6e 64 20 61 64 | 64 65 64 20 73 75 70 70 |, and ad|ded supp|
|000009f0| 6f 72 74 20 66 6f 72 20 | 6d 6f 72 65 0d 63 61 72 |ort for |more.car|
|00000a00| 64 73 2e 20 49 20 70 6f | 6c 69 73 68 65 64 20 74 |ds. I po|lished t|
|00000a10| 68 65 69 72 20 77 6f 72 | 6b 2c 20 6d 61 64 65 20 |heir wor|k, made |
|00000a20| 74 68 65 20 72 6f 75 74 | 69 6e 65 73 20 73 65 6c |the rout|ines sel|
|00000a30| 66 20 63 6f 6e 74 61 69 | 6e 65 64 2c 20 61 64 64 |f contai|ned, add|
|00000a40| 69 6e 67 20 61 0d d2 64 | 65 76 69 63 65 d3 20 61 |ing a..d|evice. a|
|00000a50| 72 67 75 6d 65 6e 74 20 | 74 6f 20 61 6c 6c 6f 77 |rgument |to allow|
|00000a60| 20 75 73 65 20 69 6e 20 | 4d 61 63 73 20 74 68 61 | use in |Macs tha|
|00000a70| 74 20 68 61 76 65 20 6d | 6f 72 65 20 74 68 61 6e |t have m|ore than|
|00000a80| 20 6f 6e 65 20 76 69 64 | 65 6f 20 64 65 76 69 63 | one vid|eo devic|
|00000a90| 65 2c 20 61 6e 64 0d 71 | 75 69 63 6b 6c 79 20 66 |e, and.q|uickly f|
|00000aa0| 69 67 75 72 69 6e 67 20 | 6f 75 74 20 61 6c 6c 20 |iguring |out all |
|00000ab0| 74 68 65 20 6b 65 79 20 | 70 61 72 61 6d 65 74 65 |the key |paramete|
|00000ac0| 72 73 20 28 6d 6f 64 65 | 2c 20 70 69 78 65 6c 53 |rs (mode|, pixelS|
|00000ad0| 69 7a 65 2c 20 44 41 43 | 20 73 69 7a 65 2c 20 61 |ize, DAC| size, a|
|00000ae0| 6e 64 20 63 6c 75 74 0d | 73 69 7a 65 29 2e 20 54 |nd clut.|size). T|
|00000af0| 68 65 72 65 20 61 72 65 | 20 6e 6f 77 20 74 77 6f |here are| now two|
|00000b00| 20 61 6c 74 65 72 6e 61 | 74 69 76 65 20 66 72 6f | alterna|tive fro|
|00000b10| 6e 74 20 65 6e 64 73 3a | 20 53 65 74 45 6e 74 72 |nt ends:| SetEntr|
|00000b20| 69 65 73 51 75 69 63 6b | 6c 79 28 29 20 66 6f 72 |iesQuick|ly() for|
|00000b30| 20 6e 65 77 0d 75 73 65 | 72 73 2c 20 61 6e 64 20 | new.use|rs, and |
|00000b40| 6d 61 63 6c 74 73 65 74 | 28 29 20 66 6f 72 20 62 |macltset|() for b|
|00000b50| 61 63 6b 77 61 72 64 20 | 63 6f 6d 70 61 74 69 62 |ackward |compatib|
|00000b60| 69 6c 69 74 79 20 77 69 | 74 68 20 70 72 6f 67 72 |ility wi|th progr|
|00000b70| 61 6d 73 20 74 68 61 74 | 20 75 73 65 64 0d 52 61 |ams that| used.Ra|
|00000b80| 79 6e 61 6c 64 d5 73 20 | 6f 72 69 67 69 6e 61 6c |ynald.s |original|
|00000b90| 20 72 6f 75 74 69 6e 65 | 73 2e 20 54 68 69 73 20 | routine|s. This |
|00000ba0| 6d 6f 64 75 6c 61 72 69 | 74 79 20 68 61 73 20 69 |modulari|ty has i|
|00000bb0| 6e 63 72 65 61 73 65 64 | 20 72 75 6e 20 74 69 6d |ncreased| run tim|
|00000bc0| 65 20 6f 6e 6c 79 0d 73 | 6c 69 67 68 74 6c 79 2c |e only.s|lightly,|
|00000bd0| 20 61 20 66 72 61 63 74 | 69 6f 6e 20 6f 66 20 61 | a fract|ion of a|
|00000be0| 20 6d 69 6c 6c 69 73 65 | 63 6f 6e 64 2e 0d 0d 4e | millise|cond...N|
|00000bf0| 65 77 20 64 72 69 76 65 | 72 73 20 61 72 65 20 68 |ew drive|rs are h|
|00000c00| 61 72 64 20 74 6f 20 77 | 72 69 74 65 2c 20 73 69 |ard to w|rite, si|
|00000c10| 6e 63 65 20 74 68 65 79 | 20 6d 75 73 74 20 64 69 |nce they| must di|
|00000c20| 72 65 63 74 6c 79 20 61 | 64 64 72 65 73 73 20 74 |rectly a|ddress t|
|00000c30| 68 65 20 72 65 67 69 73 | 74 65 72 73 20 6f 66 0d |he regis|ters of.|
|00000c40| 74 68 65 20 76 69 64 65 | 6f 20 63 61 72 64 2c 20 |the vide|o card, |
|00000c50| 77 68 69 63 68 20 61 72 | 65 20 75 6e 69 71 75 65 |which ar|e unique|
|00000c60| 20 74 6f 20 65 61 63 68 | 20 76 69 64 65 6f 20 63 | to each| video c|
|00000c70| 61 72 64 20 61 6e 64 20 | 75 6e 64 6f 63 75 6d 65 |ard and |undocume|
|00000c80| 6e 74 65 64 2e 20 53 6f | 20 74 68 65 0d 61 75 74 |nted. So| the.aut|
|00000c90| 68 6f 72 20 6f 66 20 61 | 20 64 72 69 76 65 72 20 |hor of a| driver |
|00000ca0| 6d 75 73 74 20 64 69 73 | 61 73 73 65 6d 62 6c 65 |must dis|assemble|
|00000cb0| 20 74 68 65 20 6f 72 69 | 67 69 6e 61 6c 20 76 69 | the ori|ginal vi|
|00000cc0| 64 65 6f 20 64 72 69 76 | 65 72 20 61 6e 64 20 66 |deo driv|er and f|
|00000cd0| 69 67 75 72 65 20 74 68 | 69 6e 67 73 0d 6f 75 74 |igure th|ings.out|
|00000ce0| 20 6f 6e 20 68 69 73 20 | 6f 72 20 68 65 72 20 6f | on his |or her o|
|00000cf0| 77 6e 2e 20 41 20 6c 6f | 74 20 6f 66 20 77 6f 72 |wn. A lo|t of wor|
|00000d00| 6b 2e 0d 0d 53 65 74 45 | 6e 74 72 69 65 73 51 75 |k...SetE|ntriesQu|
|00000d10| 69 63 6b 6c 79 20 69 73 | 20 75 6e 6c 69 6b 65 20 |ickly is| unlike |
|00000d20| 74 68 65 20 73 74 61 6e | 64 61 72 64 20 76 69 64 |the stan|dard vid|
|00000d30| 65 6f 20 64 72 69 76 65 | 72 73 20 69 6e 20 74 68 |eo drive|rs in th|
|00000d40| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 77 61 79 73 |e follow|ing ways|
|00000d50| 3a 0d 31 2e 20 53 65 74 | 45 6e 74 72 69 65 73 51 |:.1. Set|EntriesQ|
|00000d60| 75 69 63 6b 6c 79 20 61 | 6c 77 61 79 73 20 74 61 |uickly a|lways ta|
|00000d70| 6b 65 73 20 6c 65 73 73 | 20 74 68 61 6e 20 32 20 |kes less| than 2 |
|00000d80| 6d 73 20 74 6f 20 6c 6f | 61 64 20 74 68 65 20 77 |ms to lo|ad the w|
|00000d90| 68 6f 6c 65 20 63 6c 75 | 74 2e 20 0d 53 6f 6d 65 |hole clu|t. .Some|
|00000da0| 20 76 69 64 65 6f 20 64 | 72 69 76 65 72 73 2c 20 | video d|rivers, |
|00000db0| 65 2e 67 2e 20 66 6f 72 | 20 41 70 70 6c 65 d5 73 |e.g. for| Apple.s|
|00000dc0| 20 38 a5 32 34 20 63 61 | 72 64 2c 20 74 61 6b 65 | 8.24 ca|rd, take|
|00000dd0| 20 73 65 76 65 72 61 6c | 20 66 72 61 6d 65 73 20 | several| frames |
|00000de0| 28 3e 33 30 20 6d 73 29 | 20 74 6f 20 0d 66 69 6e |(>30 ms)| to .fin|
|00000df0| 69 73 68 20 6c 6f 61 64 | 69 6e 67 20 74 68 65 20 |ish load|ing the |
|00000e00| 63 6c 75 74 2e 0d 32 41 | 2e 20 53 65 74 45 6e 74 |clut..2A|. SetEnt|
|00000e10| 72 69 65 73 51 75 69 63 | 6b 6c 79 20 64 6f 65 73 |riesQuic|kly does|
|00000e20| 20 6e 6f 74 20 77 61 69 | 74 20 66 6f 72 20 56 42 | not wai|t for VB|
|00000e30| 4c 2c 20 73 6f 20 61 20 | 76 69 73 69 62 6c 65 20 |L, so a |visible |
|00000e40| 67 6c 69 74 63 68 20 6d | 61 79 20 61 70 70 65 61 |glitch m|ay appea|
|00000e50| 72 20 6f 6e 0d 74 68 65 | 20 63 75 72 72 65 6e 74 |r on.the| current|
|00000e60| 20 66 72 61 6d 65 2c 20 | 61 74 20 6c 65 61 73 74 | frame, |at least|
|00000e70| 20 6f 6e 20 73 6f 6d 65 | 20 6f 6c 64 65 72 20 76 | on some| older v|
|00000e80| 69 64 65 6f 20 63 61 72 | 64 73 20 28 65 2e 67 2e |ideo car|ds (e.g.|
|00000e90| 20 48 69 2d 52 65 73 2c | 20 54 6f 62 79 2c 20 61 | Hi-Res,| Toby, a|
|00000ea0| 6e 64 0d 4d 61 63 20 49 | 49 63 69 29 2e 20 28 59 |nd.Mac I|Ici). (Y|
|00000eb0| 6f 75 20 63 61 6e 20 70 | 72 65 76 65 6e 74 20 74 |ou can p|revent t|
|00000ec0| 68 69 73 20 67 6c 69 74 | 63 68 20 62 79 20 63 61 |his glit|ch by ca|
|00000ed0| 6c 6c 69 6e 67 20 53 65 | 74 45 6e 74 72 69 65 73 |lling Se|tEntries|
|00000ee0| 51 75 69 63 6b 6c 79 20 | 6f 6e 6c 79 20 61 74 0d |Quickly |only at.|
|00000ef0| 62 6c 61 6e 6b 69 6e 67 | 20 74 69 6d 65 2e 20 55 |blanking| time. U|
|00000f00| 73 65 20 61 20 56 42 4c | 20 74 61 73 6b 20 6f 72 |se a VBL| task or|
|00000f10| 20 57 61 69 74 46 6f 72 | 42 6c 61 6e 6b 69 6e 67 | WaitFor|Blanking|
|00000f20| 28 29 2e 29 20 4e 65 77 | 65 72 20 63 61 72 64 73 |().) New|er cards|
|00000f30| 20 61 6e 64 20 63 6f 6d | 70 75 74 65 72 73 0d 73 | and com|puters.s|
|00000f40| 65 65 6d 20 74 6f 20 68 | 61 76 65 20 64 75 61 6c |eem to h|ave dual|
|00000f50| 20 70 6f 72 74 65 64 20 | 76 69 64 65 6f 20 63 6c | ported |video cl|
|00000f60| 75 74 20 6d 65 6d 6f 72 | 79 20 73 6f 20 79 6f 75 |ut memor|y so you|
|00000f70| 20 63 61 6e 20 77 72 69 | 74 65 20 61 74 20 61 6e | can wri|te at an|
|00000f80| 79 20 70 6f 69 6e 74 20 | 69 6e 20 74 68 65 0d 66 |y point |in the.f|
|00000f90| 72 61 6d 65 20 63 79 63 | 6c 65 20 77 69 74 68 6f |rame cyc|le witho|
|00000fa0| 75 74 20 6e 6f 74 69 63 | 65 61 62 6c 65 20 67 6c |ut notic|eable gl|
|00000fb0| 69 74 63 68 2c 20 74 68 | 6f 75 67 68 20 6f 66 20 |itch, th|ough of |
|00000fc0| 63 6f 75 72 73 65 20 79 | 6f 75 20 6d 61 79 20 77 |course y|ou may w|
|00000fd0| 61 6e 74 20 74 6f 20 73 | 79 6e 63 68 0d 74 68 65 |ant to s|ynch.the|
|00000fe0| 20 75 70 64 61 74 65 20 | 66 6f 72 20 6f 74 68 65 | update |for othe|
|00000ff0| 72 20 72 65 61 73 6f 6e | 73 2e 0d 32 42 2e 20 41 |r reason|s..2B. A|
|00001000| 20 66 6c 61 67 20 61 72 | 67 75 6d 65 6e 74 20 d2 | flag ar|gument .|
|00001010| 77 61 69 74 46 6f 72 4e | 65 78 74 42 6c 61 6e 6b |waitForN|extBlank|
|00001020| 69 6e 67 d3 20 69 73 20 | 70 72 6f 76 69 64 65 64 |ing. is |provided|
|00001030| 2c 20 62 75 74 20 61 74 | 20 70 72 65 73 65 6e 74 |, but at| present|
|00001040| 20 74 68 69 73 0d 6f 70 | 74 69 6f 6e 20 69 73 20 | this.op|tion is |
|00001050| 6f 6e 6c 79 20 73 75 70 | 70 6f 72 74 65 64 20 66 |only sup|ported f|
|00001060| 6f 72 20 74 68 65 20 54 | 6f 62 79 20 76 69 64 65 |or the T|oby vide|
|00001070| 6f 20 63 61 72 64 2e 0d | 33 2e 20 53 65 74 45 6e |o card..|3. SetEn|
|00001080| 74 72 69 65 73 51 75 69 | 63 6b 6c 79 20 69 67 6e |triesQui|ckly ign|
|00001090| 6f 72 65 73 20 74 68 65 | 20 67 61 6d 6d 61 20 74 |ores the| gamma t|
|000010a0| 61 62 6c 65 2c 20 79 69 | 65 6c 64 69 6e 67 20 74 |able, yi|elding t|
|000010b0| 68 65 20 73 61 6d 65 20 | 72 65 73 75 6c 74 20 61 |he same |result a|
|000010c0| 73 20 75 73 69 6e 67 0d | 74 68 65 20 73 74 61 6e |s using.|the stan|
|000010d0| 64 61 72 64 20 76 69 64 | 65 6f 20 64 72 69 76 65 |dard vid|eo drive|
|000010e0| 72 20 77 69 74 68 20 61 | 6e 20 75 6e 63 6f 72 72 |r with a|n uncorr|
|000010f0| 65 63 74 65 64 20 67 61 | 6d 6d 61 20 74 61 62 6c |ected ga|mma tabl|
|00001100| 65 2e 20 45 2e 67 2e 20 | 61 66 74 65 72 20 63 61 |e. E.g. |after ca|
|00001110| 6c 6c 69 6e 67 0d 47 44 | 55 6e 63 6f 72 72 65 63 |lling.GD|Uncorrec|
|00001120| 74 65 64 47 61 6d 6d 61 | 28 64 65 76 69 63 65 29 |tedGamma|(device)|
|00001130| 2e 0d 34 2e 20 53 65 74 | 45 6e 74 72 69 65 73 51 |..4. Set|EntriesQ|
|00001140| 75 69 63 6b 6c 79 28 29 | 20 64 6f 65 73 20 6e 6f |uickly()| does no|
|00001150| 74 68 69 6e 67 20 61 6e | 64 20 72 65 74 75 72 6e |thing an|d return|
|00001160| 73 20 61 6e 20 65 72 72 | 6f 72 20 69 66 20 74 68 |s an err|or if th|
|00001170| 65 20 61 72 67 75 6d 65 | 6e 74 73 0d 73 70 65 63 |e argume|nts.spec|
|00001180| 69 66 79 20 6c 6f 61 64 | 69 6e 67 20 6f 66 20 61 |ify load|ing of a|
|00001190| 6e 20 6f 75 74 2d 6f 66 | 2d 72 61 6e 67 65 20 69 |n out-of|-range i|
|000011a0| 6e 64 65 78 2e 20 0d 35 | 2e 20 53 65 74 45 6e 74 |ndex. .5|. SetEnt|
|000011b0| 72 69 65 73 51 75 69 63 | 6b 6c 79 28 29 20 64 6f |riesQuic|kly() do|
|000011c0| 65 73 20 6e 6f 74 68 69 | 6e 67 20 61 6e 64 20 72 |es nothi|ng and r|
|000011d0| 65 74 75 72 6e 73 20 61 | 6e 20 65 72 72 6f 72 20 |eturns a|n error |
|000011e0| 69 66 20 74 68 65 20 d2 | 63 6f 75 6e 74 d3 0d 73 |if the .|count..s|
|000011f0| 70 65 63 69 66 69 65 73 | 20 7a 65 72 6f 20 65 6e |pecifies| zero en|
|00001200| 74 72 69 65 73 2e 20 54 | 68 69 73 20 69 73 20 63 |tries. T|his is c|
|00001210| 6f 6e 74 72 61 72 79 20 | 74 6f 20 74 68 65 20 28 |ontrary |to the (|
|00001220| 62 69 7a 61 72 72 65 29 | 20 41 70 70 6c 65 20 63 |bizarre)| Apple c|
|00001230| 6f 6e 76 65 6e 74 69 6f | 6e 20 74 68 61 74 0d 61 |onventio|n that.a|
|00001240| 20 63 73 63 53 65 74 45 | 6e 74 72 69 65 73 20 63 | cscSetE|ntries c|
|00001250| 6f 6e 74 72 6f 6c 20 63 | 61 6c 6c 20 77 69 74 68 |ontrol c|all with|
|00001260| 20 61 20 63 6f 75 6e 74 | 20 63 6f 72 72 65 73 70 | a count| corresp|
|00001270| 6f 6e 64 69 6e 67 20 74 | 6f 20 7a 65 72 6f 20 65 |onding t|o zero e|
|00001280| 6e 74 72 69 65 73 20 77 | 69 6c 6c 20 72 65 73 75 |ntries w|ill resu|
|00001290| 6c 74 0d 69 6e 20 6c 6f | 61 64 69 6e 67 20 6f 66 |lt.in lo|ading of|
|000012a0| 20 65 6e 74 72 69 65 73 | 20 73 70 65 63 69 66 69 | entries| specifi|
|000012b0| 65 64 20 62 79 20 74 68 | 65 20 d2 76 61 6c 75 65 |ed by th|e .value|
|000012c0| d3 20 66 69 65 6c 64 20 | 6f 66 20 74 68 65 20 43 |. field |of the C|
|000012d0| 6f 6c 6f 72 53 70 65 63 | 2e 0d 36 2e 20 53 65 74 |olorSpec|..6. Set|
|000012e0| 45 6e 74 72 69 65 73 51 | 75 69 63 6b 6c 79 20 64 |EntriesQ|uickly d|
|000012f0| 6f 65 73 20 6e 6f 74 20 | 68 61 76 65 20 69 6d 6d |oes not |have imm|
|00001300| 65 64 69 61 74 65 20 61 | 63 63 65 73 73 20 74 6f |ediate a|ccess to|
|00001310| 20 74 68 65 20 76 69 64 | 65 6f 20 64 72 69 76 65 | the vid|eo drive|
|00001320| 72 d5 73 0d 70 72 69 76 | 61 74 65 20 74 61 62 6c |r.s.priv|ate tabl|
|00001330| 65 73 2e 20 54 68 65 72 | 65 66 6f 72 65 20 74 68 |es. Ther|efore th|
|00001340| 65 20 66 69 72 73 74 20 | 74 69 6d 65 20 79 6f 75 |e first |time you|
|00001350| 20 63 61 6c 6c 20 53 65 | 74 45 6e 74 72 69 65 73 | call Se|tEntries|
|00001360| 51 75 69 63 6b 6c 79 28 | 29 20 66 6f 72 20 61 20 |Quickly(|) for a |
|00001370| 0d 70 61 72 74 69 63 75 | 6c 61 72 20 64 65 76 69 |.particu|lar devi|
|00001380| 63 65 20 74 68 65 72 65 | 20 69 73 20 61 6e 20 65 |ce there| is an e|
|00001390| 78 74 72 61 20 64 65 6c | 61 79 20 6f 66 20 61 62 |xtra del|ay of ab|
|000013a0| 6f 75 74 20 31 20 6d 73 | 20 77 68 69 6c 65 20 73 |out 1 ms| while s|
|000013b0| 6f 6d 65 20 6b 65 79 0d | 69 6e 66 6f 72 6d 61 74 |ome key.|informat|
|000013c0| 69 6f 6e 20 69 73 20 66 | 65 72 72 65 74 65 64 20 |ion is f|erreted |
|000013d0| 6f 75 74 2e 20 54 68 61 | 74 20 69 6e 66 6f 72 6d |out. Tha|t inform|
|000013e0| 61 74 69 6f 6e 20 69 73 | 20 63 61 63 68 65 64 2c |ation is| cached,|
|000013f0| 20 73 6f 20 73 75 62 73 | 65 71 75 65 6e 74 20 63 | so subs|equent c|
|00001400| 61 6c 6c 73 0d 66 6f 72 | 20 74 68 65 20 73 61 6d |alls.for| the sam|
|00001410| 65 20 64 65 76 69 63 65 | 20 77 69 6c 6c 20 62 65 |e device| will be|
|00001420| 20 66 61 73 74 2c 20 73 | 70 65 6e 64 69 6e 67 20 | fast, s|pending |
|00001430| 6d 6f 73 74 20 6f 66 20 | 74 68 65 69 72 20 74 69 |most of |their ti|
|00001440| 6d 65 20 6c 6f 61 64 69 | 6e 67 20 74 68 65 20 63 |me loadi|ng the c|
|00001450| 6c 75 74 2e 0d 0d 54 77 | 6f 20 66 72 6f 6e 74 20 |lut...Tw|o front |
|00001460| 65 6e 64 73 20 61 72 65 | 20 70 72 6f 76 69 64 65 |ends are| provide|
|00001470| 64 2c 20 66 6f 72 20 63 | 6f 6d 70 61 74 69 62 69 |d, for c|ompatibi|
|00001480| 6c 69 74 79 20 77 69 74 | 68 20 74 77 6f 20 64 69 |lity wit|h two di|
|00001490| 73 74 69 6e 63 74 20 74 | 72 61 64 69 74 69 6f 6e |stinct t|radition|
|000014a0| 73 3a 0d 0d 4f 53 45 72 | 72 20 53 65 74 45 6e 74 |s:..OSEr|r SetEnt|
|000014b0| 72 69 65 73 51 75 69 63 | 6b 6c 79 28 47 44 48 61 |riesQuic|kly(GDHa|
|000014c0| 6e 64 6c 65 20 64 65 76 | 69 63 65 2c 73 68 6f 72 |ndle dev|ice,shor|
|000014d0| 74 20 73 74 61 72 74 2c | 73 68 6f 72 74 20 63 6f |t start,|short co|
|000014e0| 75 6e 74 2c 43 6f 6c 6f | 72 53 70 65 63 20 2a 74 |unt,Colo|rSpec *t|
|000014f0| 61 62 6c 65 29 3b 0d 0d | 53 65 74 45 6e 74 72 69 |able);..|SetEntri|
|00001500| 65 73 51 75 69 63 6b 6c | 79 28 29 20 75 73 65 73 |esQuickl|y() uses|
|00001510| 20 74 68 65 20 73 61 6d | 65 20 63 61 6c 6c 69 6e | the sam|e callin|
|00001520| 67 20 63 6f 6e 76 65 6e | 74 69 6f 6e 20 61 73 20 |g conven|tion as |
|00001530| 74 68 65 20 56 69 64 65 | 6f 54 6f 6f 6c 62 6f 78 |the Vide|oToolbox|
|00001540| 20 72 6f 75 74 69 6e 65 | 0d 47 44 53 65 74 45 6e | routine|.GDSetEn|
|00001550| 74 72 69 65 73 28 29 20 | 61 6e 64 2c 20 65 78 63 |tries() |and, exc|
|00001560| 65 70 74 20 66 6f 72 20 | 61 64 64 69 6e 67 20 74 |ept for |adding t|
|00001570| 68 65 20 47 44 48 61 6e | 64 6c 65 20 61 72 67 75 |he GDHan|dle argu|
|00001580| 6d 65 6e 74 20 74 6f 20 | 73 70 65 63 69 66 79 20 |ment to |specify |
|00001590| 74 68 65 0d 64 65 76 69 | 63 65 2c 20 69 73 20 61 |the.devi|ce, is a|
|000015a0| 6c 73 6f 20 74 68 65 20 | 73 61 6d 65 20 61 73 20 |lso the |same as |
|000015b0| 41 70 70 6c 65 d5 73 20 | 53 65 74 45 6e 74 72 69 |Apple.s |SetEntri|
|000015c0| 65 73 28 29 20 43 6f 6c | 6f 72 20 4d 61 6e 61 67 |es() Col|or Manag|
|000015d0| 65 72 20 72 6f 75 74 69 | 6e 65 2c 0d 64 6f 63 75 |er routi|ne,.docu|
|000015e0| 6d 65 6e 74 65 64 20 69 | 6e 20 49 6e 73 69 64 65 |mented i|n Inside|
|000015f0| 20 4d 61 63 69 6e 74 6f | 73 68 20 56 2d 31 34 33 | Macinto|sh V-143|
|00001600| 2e 20 41 70 70 6c 65 20 | 73 70 65 63 69 66 69 65 |. Apple |specifie|
|00001610| 73 20 73 70 65 63 69 61 | 6c 20 62 65 68 61 76 69 |s specia|l behavi|
|00001620| 6f 72 20 77 68 65 6e 0d | 63 6f 75 6e 74 3d 3d 2d |or when.|count==-|
|00001630| 31 2c 20 62 75 74 20 77 | 65 20 64 6f 6e d5 74 20 |1, but w|e don.t |
|00001640| 73 75 70 70 6f 72 74 20 | 74 68 61 74 20 68 65 72 |support |that her|
|00001650| 65 20 61 6e 64 20 73 69 | 6d 70 6c 79 20 72 65 74 |e and si|mply ret|
|00001660| 75 72 6e 20 77 69 74 68 | 20 61 6e 20 65 72 72 6f |urn with| an erro|
|00001670| 72 2e 20 49 0d 73 75 67 | 67 65 73 74 20 74 68 61 |r. I.sug|gest tha|
|00001680| 74 20 6e 65 77 20 75 73 | 65 72 73 20 75 73 65 20 |t new us|ers use |
|00001690| 53 65 74 45 6e 74 72 69 | 65 73 51 75 69 63 6b 6c |SetEntri|esQuickl|
|000016a0| 79 20 72 61 74 68 65 72 | 20 74 68 61 74 20 6d 61 |y rather| that ma|
|000016b0| 63 6c 74 73 65 74 2e 20 | d2 73 74 61 72 74 d3 20 |cltset. |.start. |
|000016c0| 69 73 0d 74 68 65 20 69 | 6e 64 65 78 20 6f 66 20 |is.the i|ndex of |
|000016d0| 74 68 65 20 66 69 72 73 | 74 20 63 6c 75 74 20 65 |the firs|t clut e|
|000016e0| 6e 74 72 79 20 74 6f 20 | 6c 6f 61 64 2c 20 61 6e |ntry to |load, an|
|000016f0| 64 20 73 68 6f 75 6c 64 | 20 62 65 20 67 72 65 61 |d should| be grea|
|00001700| 74 65 72 20 74 68 61 6e | 20 6f 72 20 65 71 75 61 |ter than| or equa|
|00001710| 6c 0d 74 6f 20 7a 65 72 | 6f 2e 20 d2 63 6f 75 6e |l.to zer|o. .coun|
|00001720| 74 d3 20 69 73 20 74 68 | 65 20 6e 75 6d 62 65 72 |t. is th|e number|
|00001730| 20 6f 66 20 65 6e 74 72 | 69 65 73 20 74 6f 20 6c | of entr|ies to l|
|00001740| 6f 61 64 2c 20 6d 69 6e | 75 73 20 31 2e 20 28 59 |oad, min|us 1. (Y|
|00001750| 65 73 2c 20 d2 6d 69 6e | 75 73 20 31 d3 2c 0d 74 |es, .min|us 1.,.t|
|00001760| 68 61 74 d5 73 20 41 70 | 70 6c 65 d5 73 20 63 6f |hat.s Ap|ple.s co|
|00001770| 6e 66 75 73 69 6e 67 20 | 63 6f 6e 76 65 6e 74 69 |nfusing |conventi|
|00001780| 6f 6e 2e 29 20 d2 74 61 | 62 6c 65 d3 20 69 73 20 |on.) .ta|ble. is |
|00001790| 61 20 43 6f 6c 6f 72 73 | 70 65 63 20 61 72 72 61 |a Colors|pec arra|
|000017a0| 79 2e 20 28 45 61 63 68 | 20 43 6f 6c 6f 72 53 70 |y. (Each| ColorSp|
|000017b0| 65 63 0d 65 6c 65 6d 65 | 6e 74 20 69 73 20 61 20 |ec.eleme|nt is a |
|000017c0| 73 74 72 75 63 74 75 72 | 65 20 63 6f 6e 73 69 73 |structur|e consis|
|000017d0| 74 69 6e 67 20 6f 66 20 | 61 20 74 77 6f 2d 62 79 |ting of |a two-by|
|000017e0| 74 65 20 d2 76 61 6c 75 | 65 d3 2c 20 77 68 69 63 |te .valu|e., whic|
|000017f0| 68 20 69 73 20 6e 6f 74 | 20 75 73 65 64 2c 20 61 |h is not| used, a|
|00001800| 6e 64 0d 61 20 36 2d 62 | 79 74 65 20 d2 72 67 62 |nd.a 6-b|yte .rgb|
|00001810| d3 2c 20 77 68 69 63 68 | 2c 20 69 6e 20 74 75 72 |., which|, in tur|
|00001820| 6e 20 69 73 20 61 20 73 | 74 72 75 63 74 75 72 65 |n is a s|tructure|
|00001830| 20 6f 66 20 74 68 72 65 | 65 20 31 36 2d 62 69 74 | of thre|e 16-bit|
|00001840| 20 75 6e 73 69 67 6e 65 | 64 20 73 68 6f 72 74 0d | unsigne|d short.|
|00001850| 69 6e 74 73 3a 20 72 65 | 64 2c 20 67 72 65 65 6e |ints: re|d, green|
|00001860| 2c 20 61 6e 64 20 62 6c | 75 65 2e 20 41 70 70 6c |, and bl|ue. Appl|
|00001870| 65 d5 73 20 63 6f 6e 76 | 65 6e 74 69 6f 6e 20 69 |e.s conv|ention i|
|00001880| 73 20 74 68 61 74 20 74 | 68 65 20 4d 4f 53 54 20 |s that t|he MOST |
|00001890| 53 49 47 4e 49 46 49 43 | 41 4e 54 20 42 49 54 53 |SIGNIFIC|ANT BITS|
|000018a0| 0d 6f 66 20 74 68 65 20 | 31 36 2d 62 69 74 20 63 |.of the |16-bit c|
|000018b0| 6f 6c 6f 72 20 76 61 6c | 75 65 73 20 61 72 65 20 |olor val|ues are |
|000018c0| 75 73 65 64 2e 20 49 74 | d5 73 20 67 6f 6f 64 20 |used. It|.s good |
|000018d0| 70 72 61 63 74 69 63 65 | 20 69 6e 20 79 6f 75 72 |practice| in your|
|000018e0| 20 70 72 6f 67 72 61 6d | 73 20 74 6f 0d 70 72 6f | program|s to.pro|
|000018f0| 76 69 64 65 20 66 75 6c | 6c 20 31 36 2d 62 69 74 |vide ful|l 16-bit|
|00001900| 20 76 61 6c 75 65 73 2c | 20 73 6f 20 74 68 61 74 | values,| so that|
|00001910| 20 77 68 65 6e 20 79 6f | 75 20 75 70 67 72 61 64 | when yo|u upgrad|
|00001920| 65 20 74 6f 20 66 61 6e | 63 69 65 72 20 76 69 64 |e to fan|cier vid|
|00001930| 65 6f 20 63 61 72 64 73 | 20 77 69 74 68 0d 6d 6f |eo cards| with.mo|
|00001940| 72 65 2d 74 68 61 6e 2d | 65 69 67 68 74 20 62 69 |re-than-|eight bi|
|00001950| 74 20 44 41 43 73 20 79 | 6f 75 72 20 70 72 6f 67 |t DACs y|our prog|
|00001960| 72 61 6d 73 20 77 69 6c | 6c 20 62 65 6e 65 66 69 |rams wil|l benefi|
|00001970| 74 20 66 72 6f 6d 20 74 | 68 65 20 65 78 74 72 61 |t from t|he extra|
|00001980| 20 70 72 65 63 69 73 69 | 6f 6e 0d 77 69 74 68 6f | precisi|on.witho|
|00001990| 75 74 20 6e 65 65 64 69 | 6e 67 20 61 6e 79 20 63 |ut needi|ng any c|
|000019a0| 68 61 6e 67 65 2e 20 52 | 65 74 75 72 6e 73 20 7a |hange. R|eturns z|
|000019b0| 65 72 6f 20 69 66 20 73 | 75 63 63 65 73 73 66 75 |ero if s|uccessfu|
|000019c0| 6c 2c 20 6e 6f 6e 7a 65 | 72 6f 20 69 66 20 75 6e |l, nonze|ro if un|
|000019d0| 73 75 63 63 65 73 73 66 | 75 6c 2c 0d 69 2e 65 2e |successf|ul,.i.e.|
|000019e0| 20 69 6c 6c 65 67 61 6c | 20 61 72 67 75 6d 65 6e | illegal| argumen|
|000019f0| 74 73 2e 0d 0d 73 68 6f | 72 74 20 6d 61 63 6c 74 |ts...sho|rt maclt|
|00001a00| 73 65 74 28 47 44 48 61 | 6e 64 6c 65 20 64 65 76 |set(GDHa|ndle dev|
|00001a10| 69 63 65 2c 73 68 6f 72 | 74 20 73 74 61 72 74 0d |ice,shor|t start.|
|00001a20| 09 2c 75 6e 73 69 67 6e | 65 64 20 73 68 6f 72 74 |.,unsign|ed short|
|00001a30| 2a 20 72 65 64 2c 75 6e | 73 69 67 6e 65 64 20 73 |* red,un|signed s|
|00001a40| 68 6f 72 74 2a 20 67 72 | 65 65 6e 2c 75 6e 73 69 |hort* gr|een,unsi|
|00001a50| 67 6e 65 64 20 73 68 6f | 72 74 2a 20 62 6c 75 65 |gned sho|rt* blue|
|00001a60| 2c 73 68 6f 72 74 20 63 | 6f 75 6e 74 31 29 3b 0d |,short c|ount1);.|
|00001a70| 0d 6d 61 63 6c 74 73 65 | 74 28 29 20 75 73 65 73 |.macltse|t() uses|
|00001a80| 20 61 20 63 61 6c 6c 69 | 6e 67 20 63 6f 6e 76 65 | a calli|ng conve|
|00001a90| 6e 74 69 6f 6e 20 65 73 | 74 61 62 6c 69 73 68 65 |ntion es|tablishe|
|00001aa0| 64 20 62 79 20 52 61 79 | 6e 61 6c 64 20 43 6f 6d |d by Ray|nald Com|
|00001ab0| 74 6f 69 73 2c 20 61 6e | 64 0d 70 72 6f 76 69 64 |tois, an|d.provid|
|00001ac0| 65 73 20 62 61 63 6b 77 | 61 72 64 20 63 6f 6d 70 |es backw|ard comp|
|00001ad0| 61 74 69 62 69 6c 69 74 | 79 20 77 69 74 68 20 6f |atibilit|y with o|
|00001ae0| 6c 64 65 72 20 70 72 6f | 67 72 61 6d 73 2e 20 d2 |lder pro|grams. .|
|00001af0| 72 65 64 d3 2c 20 d2 67 | 72 65 65 6e d3 2c 20 61 |red., .g|reen., a|
|00001b00| 6e 64 20 d2 62 6c 75 65 | d3 0d 61 72 65 20 61 72 |nd .blue|..are ar|
|00001b10| 72 61 79 73 20 6f 66 20 | 31 36 2d 62 69 74 20 75 |rays of |16-bit u|
|00001b20| 6e 73 69 67 6e 65 64 20 | 73 68 6f 72 74 20 69 6e |nsigned |short in|
|00001b30| 74 73 2c 20 6f 66 20 77 | 68 69 63 68 20 74 68 65 |ts, of w|hich the|
|00001b40| 20 4c 45 41 53 54 20 53 | 49 47 4e 49 46 49 43 41 | LEAST S|IGNIFICA|
|00001b50| 4e 54 20 42 49 54 53 0d | 61 72 65 20 75 73 65 64 |NT BITS.|are used|
|00001b60| 2e 20 d2 73 74 61 72 74 | d3 20 69 73 20 74 68 65 |. .start|. is the|
|00001b70| 20 69 6e 64 65 78 20 6f | 66 20 74 68 65 20 66 69 | index o|f the fi|
|00001b80| 72 73 74 20 65 6e 74 72 | 79 20 74 6f 20 63 68 61 |rst entr|y to cha|
|00001b90| 6e 67 65 2e 20 d2 63 6f | 75 6e 74 31 d3 20 69 73 |nge. .co|unt1. is|
|00001ba0| 20 74 68 65 0d 6e 75 6d | 62 65 72 20 6f 66 20 65 | the.num|ber of e|
|00001bb0| 6e 74 72 69 65 73 20 74 | 6f 20 63 68 61 6e 67 65 |ntries t|o change|
|00001bc0| 20 28 63 6f 6e 74 72 61 | 72 79 20 74 6f 20 41 70 | (contra|ry to Ap|
|00001bd0| 70 6c 65 d5 73 20 63 6f | 6e 76 65 6e 74 69 6f 6e |ple.s co|nvention|
|00001be0| 29 2e 0d 0d 42 6f 74 68 | 20 66 72 6f 6e 74 20 65 |)...Both| front e|
|00001bf0| 6e 64 73 20 75 73 65 20 | 74 68 65 20 73 61 6d 65 |nds use |the same|
|00001c00| 20 67 65 6e 65 72 61 6c | 2d 70 75 72 70 6f 73 65 | general|-purpose|
|00001c10| 20 73 75 62 72 6f 75 74 | 69 6e 65 3a 20 4c 6f 61 | subrout|ine: Loa|
|00001c20| 64 43 6c 75 74 28 29 2c | 20 77 68 69 63 68 20 69 |dClut(),| which i|
|00001c30| 6e 0d 74 75 72 6e 20 63 | 61 6c 6c 73 20 74 68 65 |n.turn c|alls the|
|00001c40| 20 68 61 72 64 77 61 72 | 65 2d 73 70 65 63 69 66 | hardwar|e-specif|
|00001c50| 69 63 20 72 6f 75 74 69 | 6e 65 20 61 70 70 72 6f |ic routi|ne appro|
|00001c60| 70 72 69 61 74 65 20 74 | 6f 20 74 68 65 20 70 61 |priate t|o the pa|
|00001c70| 72 74 69 63 75 6c 61 72 | 20 76 69 64 65 6f 20 0d |rticular| video .|
|00001c80| 64 65 76 69 63 65 20 62 | 65 69 6e 67 20 75 73 65 |device b|eing use|
|00001c90| 64 2e 0d 0d 54 68 65 20 | 75 73 65 4d 6f 73 74 53 |d...The |useMostS|
|00001ca0| 69 67 6e 69 66 69 63 61 | 6e 74 42 69 74 73 20 62 |ignifica|ntBits b|
|00001cb0| 69 74 20 6f 66 20 74 68 | 65 20 d2 66 6c 61 67 73 |it of th|e .flags|
|00001cc0| d3 20 61 72 67 75 6d 65 | 6e 74 20 73 70 65 63 69 |. argume|nt speci|
|00001cd0| 66 69 65 73 20 77 68 65 | 74 68 65 72 20 74 6f 20 |fies whe|ther to |
|00001ce0| 75 73 65 20 0d 41 70 70 | 6c 65 d5 73 20 63 6f 6e |use .App|le.s con|
|00001cf0| 76 65 6e 74 69 6f 6e 20 | 28 66 6f 72 20 75 73 65 |vention |(for use|
|00001d00| 72 73 20 6f 66 20 53 65 | 74 45 6e 74 72 69 65 73 |rs of Se|tEntries|
|00001d10| 51 75 69 63 6b 6c 79 29 | 20 6f 72 20 52 61 79 6e |Quickly)| or Rayn|
|00001d20| 61 6c 64 d5 73 20 63 6f | 6e 76 65 6e 74 69 6f 6e |ald.s co|nvention|
|00001d30| 20 0d 28 66 6f 72 20 75 | 73 65 72 73 20 6f 66 20 | .(for u|sers of |
|00001d40| 6d 61 63 6c 74 73 65 74 | 29 2e 0d 0d 41 74 20 74 |macltset|)...At t|
|00001d50| 68 65 20 6d 6f 6d 65 6e | 74 20 61 6c 6c 20 74 68 |he momen|t all th|
|00001d60| 65 20 73 75 70 70 6f 72 | 74 65 64 20 76 69 64 65 |e suppor|ted vide|
|00001d70| 6f 20 63 61 72 64 73 20 | 68 61 76 65 20 38 2d 62 |o cards |have 8-b|
|00001d80| 69 74 20 44 41 43 73 2c | 20 65 78 63 65 70 74 20 |it DACs,| except |
|00001d90| 74 68 65 20 52 61 73 74 | 65 72 4f 70 73 0d 50 72 |the Rast|erOps.Pr|
|00001da0| 6f 43 6f 6c 6f 72 20 33 | 32 2c 20 77 68 69 63 68 |oColor 3|2, which|
|00001db0| 20 68 61 73 20 39 2d 62 | 69 74 20 44 41 43 73 2e | has 9-b|it DACs.|
|00001dc0| 20 49 66 20 74 68 65 20 | 75 73 65 4d 6f 73 74 53 | If the |useMostS|
|00001dd0| 69 67 6e 69 66 69 63 61 | 6e 74 42 69 74 73 20 66 |ignifica|ntBits f|
|00001de0| 6c 61 67 20 69 73 20 74 | 72 75 65 0d 74 68 65 6e |lag is t|rue.then|
|00001df0| 20 79 6f 75 20 64 6f 6e | d5 74 20 6e 65 65 64 20 | you don|.t need |
|00001e00| 74 6f 20 77 6f 72 72 79 | 2c 20 61 73 20 74 68 65 |to worry|, as the|
|00001e10| 20 6c 65 61 73 74 20 73 | 69 67 6e 69 66 69 63 61 | least s|ignifica|
|00001e20| 6e 74 20 62 69 74 20 6f | 66 20 74 68 65 20 39 2d |nt bit o|f the 9-|
|00001e30| 62 69 74 20 44 41 43 0d | 73 69 6d 70 6c 79 20 70 |bit DAC.|simply p|
|00001e40| 69 63 6b 73 20 75 70 20 | 74 68 65 20 6e 65 78 74 |icks up |the next|
|00001e50| 20 6c 6f 77 65 72 20 62 | 69 74 20 66 72 6f 6d 20 | lower b|it from |
|00001e60| 79 6f 75 72 20 6e 75 6d | 62 65 72 73 2c 20 67 69 |your num|bers, gi|
|00001e70| 76 69 6e 67 20 79 6f 75 | 20 61 20 74 61 64 20 6d |ving you| a tad m|
|00001e80| 6f 72 65 0d 70 72 65 63 | 69 73 69 6f 6e 2e 20 48 |ore.prec|ision. H|
|00001e90| 6f 77 65 76 65 72 2c 20 | 69 66 20 75 73 65 4d 6f |owever, |if useMo|
|00001ea0| 73 74 53 69 67 6e 69 66 | 69 63 61 6e 74 42 69 74 |stSignif|icantBit|
|00001eb0| 73 20 66 6c 61 67 20 69 | 73 20 66 61 6c 73 65 20 |s flag i|s false |
|00001ec0| 74 68 65 6e 2c 20 69 6e | 20 6f 72 64 65 72 20 74 |then, in| order t|
|00001ed0| 6f 0d 75 73 65 20 74 68 | 65 20 66 75 6c 6c 20 72 |o.use th|e full r|
|00001ee0| 61 6e 67 65 20 6f 66 20 | 74 68 65 20 44 41 43 20 |ange of |the DAC |
|00001ef0| 79 6f 75 20 6d 75 73 74 | 20 6d 61 6b 65 20 61 6c |you must| make al|
|00001f00| 6c 20 79 6f 75 72 20 6e | 75 6d 62 65 72 73 20 74 |l your n|umbers t|
|00001f10| 77 69 63 65 20 61 73 20 | 62 69 67 2c 20 6f 72 20 |wice as |big, or |
|00001f20| 2d 2d 0d 63 6c 75 64 67 | 65 20 74 69 6d 65 21 20 |--.cludg|e time! |
|00001f30| 2d 2d 20 73 65 74 20 74 | 68 65 20 75 73 65 4f 6e |-- set t|he useOn|
|00001f40| 6c 79 38 42 69 74 73 20 | 66 6c 61 67 2c 20 74 6f |ly8Bits |flag, to|
|00001f50| 20 72 65 71 75 65 73 74 | 20 74 68 61 74 20 79 6f | request| that yo|
|00001f60| 75 72 20 38 2d 62 69 74 | 20 6e 75 6d 62 65 72 73 |ur 8-bit| numbers|
|00001f70| 20 62 65 0d 6d 75 6c 74 | 69 70 6c 69 65 64 20 62 | be.mult|iplied b|
|00001f80| 79 20 74 77 6f 2c 20 61 | 6c 6c 6f 77 69 6e 67 20 |y two, a|llowing |
|00001f90| 79 6f 75 20 74 6f 20 75 | 73 65 20 74 68 65 20 77 |you to u|se the w|
|00001fa0| 68 6f 6c 65 20 72 61 6e | 67 65 20 6f 66 20 74 68 |hole ran|ge of th|
|00001fb0| 65 20 44 41 43 20 77 69 | 74 68 6f 75 74 0d 63 68 |e DAC wi|thout.ch|
|00001fc0| 61 6e 67 69 6e 67 20 74 | 68 65 20 72 65 73 74 20 |anging t|he rest |
|00001fd0| 6f 66 20 79 6f 75 72 20 | 70 72 6f 67 72 61 6d 2c |of your |program,|
|00001fe0| 20 62 75 74 20 77 61 73 | 74 69 6e 67 20 74 68 65 | but was|ting the|
|00001ff0| 20 44 41 43 d5 73 20 6c | 65 61 73 74 20 73 69 67 | DAC.s l|east sig|
|00002000| 6e 69 66 69 63 61 6e 74 | 20 62 69 74 0d 62 79 20 |nificant| bit.by |
|00002010| 73 65 74 74 69 6e 67 20 | 69 74 20 70 65 72 6d 61 |setting |it perma|
|00002020| 6e 65 6e 74 6c 79 20 74 | 6f 20 7a 65 72 6f 2e 0d |nently t|o zero..|
|00002030| 0d 53 55 53 50 45 4e 44 | 49 4e 47 20 49 4e 54 45 |.SUSPEND|ING INTE|
|00002040| 52 52 55 50 54 53 2e 20 | 49 66 20 79 6f 75 20 77 |RRUPTS. |If you w|
|00002050| 69 73 68 2c 20 74 68 65 | 20 6c 6f 77 2d 6c 65 76 |ish, the| low-lev|
|00002060| 65 6c 20 72 6f 75 74 69 | 6e 65 73 20 77 69 6c 6c |el routi|nes will|
|00002070| 20 73 75 73 70 65 6e 64 | 0d 69 6e 74 65 72 72 75 | suspend|.interru|
|00002080| 70 74 73 20 77 68 69 6c | 65 20 6c 6f 61 64 69 6e |pts whil|e loadin|
|00002090| 67 20 74 68 65 20 63 6c | 75 74 2e 20 50 72 65 73 |g the cl|ut. Pres|
|000020a0| 75 6d 61 62 6c 79 20 52 | 61 79 6e 61 6c 64 20 68 |umably R|aynald h|
|000020b0| 61 64 20 68 69 73 20 72 | 65 61 73 6f 6e 73 20 66 |ad his r|easons f|
|000020c0| 6f 72 0d 69 6d 70 6c 65 | 6d 65 6e 74 69 6e 67 20 |or.imple|menting |
|000020d0| 74 68 69 73 2c 20 73 6f | 20 74 68 69 73 20 d2 66 |this, so| this .f|
|000020e0| 65 61 74 75 72 65 d3 20 | 69 73 20 65 6e 61 62 6c |eature. |is enabl|
|000020f0| 65 64 20 77 68 65 6e 20 | 79 6f 75 20 75 73 65 20 |ed when |you use |
|00002100| 6d 61 63 6c 74 73 65 74 | 28 29 2e 20 50 65 74 65 |macltset|(). Pete|
|00002110| 72 0d 4c 65 6e 6e 69 65 | 20 77 72 69 74 65 73 2c |r.Lennie| writes,|
|00002120| 20 d2 54 68 65 20 73 77 | 69 74 63 68 20 74 6f 20 | .The sw|itch to |
|00002130| 75 6e 69 6e 74 65 72 72 | 75 70 74 61 62 6c 65 20 |uninterr|uptable |
|00002140| 70 72 6f 63 65 73 73 69 | 6e 67 20 64 75 72 69 6e |processi|ng durin|
|00002150| 67 20 74 68 65 20 77 72 | 69 74 65 20 69 73 2c 20 |g the wr|ite is, |
|00002160| 49 0d 74 68 69 6e 6b 2c | 20 6f 75 74 20 6f 66 20 |I.think,| out of |
|00002170| 74 68 65 20 6f 72 69 67 | 69 6e 61 6c 20 64 72 69 |the orig|inal dri|
|00002180| 76 65 72 73 20 28 74 68 | 6f 75 67 68 20 49 d5 6d |vers (th|ough I.m|
|00002190| 20 6e 6f 74 20 61 62 73 | 6f 6c 75 74 65 6c 79 20 | not abs|olutely |
|000021a0| 73 75 72 65 29 2e 20 20 | 49 20 69 6d 61 67 69 6e |sure). |I imagin|
|000021b0| 65 0d 69 74 d5 73 20 74 | 6f 20 61 76 6f 69 64 20 |e.it.s t|o avoid |
|000021c0| 64 69 73 70 6c 61 79 20 | 67 6c 69 74 63 68 65 73 |display |glitches|
|000021d0| 20 74 68 61 74 20 77 6f | 75 6c 64 20 72 65 73 75 | that wo|uld resu|
|000021e0| 6c 74 20 66 72 6f 6d 20 | 73 6f 6d 65 20 68 69 67 |lt from |some hig|
|000021f0| 68 65 72 20 70 72 69 6f | 72 69 74 79 0d 69 6e 74 |her prio|rity.int|
|00002200| 65 72 72 75 70 74 20 73 | 75 73 70 65 6e 64 69 6e |errupt s|uspendin|
|00002210| 67 20 61 20 63 6c 75 74 | 20 72 65 77 72 69 74 65 |g a clut| rewrite|
|00002220| 20 73 6f 6d 65 77 68 65 | 72 65 20 69 6e 20 74 68 | somewhe|re in th|
|00002230| 65 20 6d 69 64 64 6c 65 | 2e d3 20 48 6f 77 65 76 |e middle|.. Howev|
|00002240| 65 72 2c 20 49 20 28 64 | 67 70 29 0d 64 6f 6e d5 |er, I (d|gp).don.|
|00002250| 74 20 73 65 65 20 61 6e | 79 20 61 64 76 61 6e 74 |t see an|y advant|
|00002260| 61 67 65 20 74 6f 20 73 | 75 73 70 65 6e 64 69 6e |age to s|uspendin|
|00002270| 67 20 69 6e 74 65 72 72 | 75 70 74 73 2c 20 61 6e |g interr|upts, an|
|00002280| 64 20 62 65 6c 69 65 76 | 65 20 74 68 61 74 20 74 |d believ|e that t|
|00002290| 68 65 72 65 20 69 73 20 | 61 0d 73 69 67 6e 69 66 |here is |a.signif|
|000022a0| 69 63 61 6e 74 20 64 6f | 77 6e 73 69 64 65 20 69 |icant do|wnside i|
|000022b0| 66 20 79 6f 75 20 61 72 | 65 20 74 72 79 69 6e 67 |f you ar|e trying|
|000022c0| 20 74 6f 20 6b 65 65 70 | 20 74 72 61 63 6b 20 6f | to keep| track o|
|000022d0| 66 20 74 68 65 20 56 42 | 4c 20 69 6e 74 65 72 72 |f the VB|L interr|
|000022e0| 75 70 74 73 20 6f 6e 0d | 73 65 76 65 72 61 6c 20 |upts on.|several |
|000022f0| 76 69 64 65 6f 20 63 61 | 72 64 73 2c 20 73 69 6e |video ca|rds, sin|
|00002300| 63 65 20 73 75 73 70 65 | 6e 64 69 6e 67 20 69 6e |ce suspe|nding in|
|00002310| 74 65 72 72 75 70 74 73 | 20 66 6f 72 20 31 20 6f |terrupts| for 1 o|
|00002320| 72 20 32 20 6d 73 20 6d | 69 67 68 74 20 62 65 20 |r 2 ms m|ight be |
|00002330| 6c 6f 6e 67 0d 65 6e 6f | 75 67 68 20 74 6f 20 6d |long.eno|ugh to m|
|00002340| 69 73 73 20 61 20 77 68 | 6f 6c 65 20 56 42 4c 20 |iss a wh|ole VBL |
|00002350| 69 6e 74 65 72 76 61 6c | 2e 20 54 68 75 73 20 53 |interval|. Thus S|
|00002360| 65 74 45 6e 74 72 69 65 | 73 51 75 69 63 6b 6c 79 |etEntrie|sQuickly|
|00002370| 20 64 69 73 61 62 6c 65 | 73 20 74 68 69 73 0d d2 | disable|s this..|
|00002380| 66 65 61 74 75 72 65 d3 | 2e 20 48 6f 77 65 76 65 |feature.|. Howeve|
|00002390| 72 2c 20 74 68 69 73 20 | 69 73 20 6e 6f 74 20 61 |r, this |is not a|
|000023a0| 20 70 68 69 6c 6f 73 6f | 70 68 69 63 61 6c 20 64 | philoso|phical d|
|000023b0| 65 62 61 74 65 2e 20 57 | 65 20 61 6c 6c 20 61 67 |ebate. W|e all ag|
|000023c0| 72 65 65 20 74 68 61 74 | 0d 69 6e 74 65 72 72 75 |ree that|.interru|
|000023d0| 70 74 73 20 73 68 6f 75 | 6c 64 20 62 65 20 73 75 |pts shou|ld be su|
|000023e0| 73 70 65 6e 64 65 64 20 | 69 66 20 64 6f 69 6e 67 |spended |if doing|
|000023f0| 20 6f 74 68 65 72 77 69 | 73 65 20 77 6f 75 6c 64 | otherwi|se would|
|00002400| 20 6f 63 63 61 73 69 6f | 6e 61 6c 6c 79 20 72 65 | occasio|nally re|
|00002410| 73 75 6c 74 20 69 6e 20 | 61 0d 76 69 73 69 62 6c |sult in |a.visibl|
|00002420| 65 20 67 6c 69 74 63 68 | 2e 20 44 6f 65 73 20 61 |e glitch|. Does a|
|00002430| 6e 79 6f 6e 65 20 6b 6e | 6f 77 3f 0d 0d 4f 53 45 |nyone kn|ow?..OSE|
|00002440| 72 72 20 57 61 69 74 46 | 6f 72 4e 65 78 74 42 6c |rr WaitF|orNextBl|
|00002450| 61 6e 6b 69 6e 67 28 47 | 44 48 61 6e 64 6c 65 20 |anking(G|DHandle |
|00002460| 64 65 76 69 63 65 29 3b | 0d 0d 57 61 69 74 73 20 |device);|..Waits |
|00002470| 66 6f 72 20 62 65 67 69 | 6e 6e 69 6e 67 20 6f 66 |for begi|nning of|
|00002480| 20 6e 65 78 74 20 62 6c | 61 6e 6b 69 6e 67 20 69 | next bl|anking i|
|00002490| 6e 74 65 72 76 61 6c 2e | 20 43 75 72 72 65 6e 74 |nterval.| Current|
|000024a0| 6c 79 20 74 68 69 73 20 | 73 75 70 70 6f 72 74 73 |ly this |supports|
|000024b0| 20 6f 6e 6c 79 20 74 68 | 65 0d 54 6f 62 79 20 61 | only th|e.Toby a|
|000024c0| 6e 64 20 48 69 52 65 73 | 20 63 61 72 64 73 20 28 |nd HiRes| cards (|
|000024d0| 41 70 70 6c 65 d5 73 20 | 6f 72 69 67 69 6e 61 6c |Apple.s |original|
|000024e0| 20 76 69 64 65 6f 20 63 | 61 72 64 73 2c 20 6e 6f | video c|ards, no|
|000024f0| 77 20 6f 62 73 6f 6c 65 | 74 65 29 2e 0d 0d 53 50 |w obsole|te)...SP|
|00002500| 45 45 44 2e 20 53 65 74 | 45 6e 74 72 69 65 73 51 |EED. Set|EntriesQ|
|00002510| 75 69 63 6b 6c 79 28 29 | 20 69 73 20 73 65 6c 66 |uickly()| is self|
|00002520| 20 63 6f 6e 74 61 69 6e | 65 64 2e 20 59 6f 75 20 | contain|ed. You |
|00002530| 73 69 6d 70 6c 79 20 67 | 69 76 65 20 69 74 20 74 |simply g|ive it t|
|00002540| 68 65 20 47 44 48 61 6e | 64 6c 65 20 6f 66 0d 79 |he GDHan|dle of.y|
|00002550| 6f 75 72 20 76 69 64 65 | 6f 20 64 65 76 69 63 65 |our vide|o device|
|00002560| 20 28 61 73 20 72 65 74 | 75 72 6e 65 64 2c 20 65 | (as ret|urned, e|
|00002570| 2e 67 2e 20 62 79 20 47 | 65 74 53 63 72 65 65 6e |.g. by G|etScreen|
|00002580| 44 65 76 69 63 65 29 2c | 20 61 6e 64 20 74 65 6c |Device),| and tel|
|00002590| 6c 20 69 74 20 77 68 61 | 74 20 79 6f 75 0d 77 61 |l it wha|t you.wa|
|000025a0| 6e 74 20 74 6f 20 64 6f | 20 74 6f 20 74 68 65 20 |nt to do| to the |
|000025b0| 63 6c 75 74 2e 20 49 6e | 20 6f 72 64 65 72 20 74 |clut. In| order t|
|000025c0| 6f 20 64 6f 20 74 68 69 | 73 20 66 6f 72 20 79 6f |o do thi|s for yo|
|000025d0| 75 20 69 74 20 6e 65 65 | 64 73 20 74 6f 20 66 69 |u it nee|ds to fi|
|000025e0| 67 75 72 65 20 6f 75 74 | 20 61 0d 62 75 6e 63 68 |gure out| a.bunch|
|000025f0| 20 6f 66 20 73 74 75 66 | 66 20 61 62 6f 75 74 20 | of stuf|f about |
|00002600| 79 6f 75 72 20 76 69 64 | 65 6f 20 64 65 76 69 63 |your vid|eo devic|
|00002610| 65 2e 20 54 68 69 73 20 | 72 65 73 65 61 72 63 68 |e. This |research|
|00002620| 20 74 61 6b 65 73 20 74 | 69 6d 65 3b 20 74 68 65 | takes t|ime; the|
|00002630| 20 66 69 72 73 74 20 74 | 69 6d 65 0d 79 6f 75 20 | first t|ime.you |
|00002640| 63 61 6c 6c 20 69 74 20 | 66 6f 72 20 61 20 70 61 |call it |for a pa|
|00002650| 72 74 69 63 75 6c 61 72 | 20 64 65 76 69 63 65 20 |rticular| device |
|00002660| 69 74 20 74 61 6b 65 73 | 20 6f 6e 20 74 68 65 20 |it takes| on the |
|00002670| 6f 72 64 65 72 20 6f 66 | 20 31 20 6d 73 20 74 6f |order of| 1 ms to|
|00002680| 20 6c 6f 6f 6b 20 75 70 | 0d 73 74 75 66 66 2e 20 | look up|.stuff. |
|00002690| 48 6f 77 65 76 65 72 2c | 20 69 74 20 73 61 76 65 |However,| it save|
|000026a0| 73 20 74 68 69 73 20 69 | 6e 66 6f 20 69 6e 20 61 |s this i|nfo in a|
|000026b0| 20 63 61 63 68 65 2c 20 | 66 6f 72 20 65 61 63 68 | cache, |for each|
|000026c0| 20 64 65 76 69 63 65 2c | 20 66 6f 72 20 71 75 69 | device,| for qui|
|000026d0| 63 6b 0d 72 65 74 72 69 | 65 76 61 6c 20 6f 6e 20 |ck.retri|eval on |
|000026e0| 73 75 62 73 65 71 75 65 | 6e 74 20 6f 63 63 61 73 |subseque|nt occas|
|000026f0| 69 6f 6e 73 2e 20 54 68 | 65 20 69 6d 70 6c 69 63 |ions. Th|e implic|
|00002700| 61 74 69 6f 6e 20 69 73 | 20 74 68 61 74 20 70 72 |ation is| that pr|
|00002710| 6f 67 72 61 6d 73 20 74 | 68 61 74 20 75 73 65 0d |ograms t|hat use.|
|00002720| 53 65 74 45 6e 74 72 69 | 65 73 51 75 69 63 6b 6c |SetEntri|esQuickl|
|00002730| 79 20 6f 75 67 68 74 20 | 74 6f 20 63 61 6c 6c 20 |y ought |to call |
|00002740| 69 74 20 6f 6e 63 65 20 | 6a 75 73 74 20 66 6f 72 |it once |just for|
|00002750| 20 70 72 61 63 74 69 63 | 65 20 28 74 6f 20 67 65 | practic|e (to ge|
|00002760| 74 20 74 68 65 20 63 61 | 63 68 65 0d 6c 6f 61 64 |t the ca|che.load|
|00002770| 69 6e 67 20 6f 76 65 72 | 20 77 69 74 68 29 20 62 |ing over| with) b|
|00002780| 65 66 6f 72 65 20 75 73 | 69 6e 67 20 69 74 20 69 |efore us|ing it i|
|00002790| 6e 20 61 20 73 69 74 75 | 61 74 69 6f 6e 20 77 68 |n a situ|ation wh|
|000027a0| 65 72 65 20 73 70 65 65 | 64 20 6d 61 74 74 65 72 |ere spee|d matter|
|000027b0| 73 2e 0d 0d 54 68 65 20 | 63 6f 64 69 6e 67 20 6f |s...The |coding o|
|000027c0| 66 20 74 68 65 20 4c 6f | 61 64 43 6c 75 74 20 d2 |f the Lo|adClut .|
|000027d0| 64 72 69 76 65 72 d3 20 | 72 6f 75 74 69 6e 65 73 |driver. |routines|
|000027e0| 20 69 73 20 61 20 63 6f | 6d 70 72 6f 6d 69 73 65 | is a co|mpromise|
|000027f0| 20 62 65 74 77 65 65 6e | 20 74 68 65 20 6e 65 65 | between| the nee|
|00002800| 64 73 0d 6f 66 20 53 65 | 74 45 6e 74 72 69 65 73 |ds.of Se|tEntries|
|00002810| 51 75 69 63 6b 6c 79 20 | 61 6e 64 20 6d 61 63 6c |Quickly |and macl|
|00002820| 74 73 65 74 2c 20 77 68 | 69 63 68 20 62 6f 74 68 |tset, wh|ich both|
|00002830| 20 75 73 65 20 74 68 65 | 6d 2e 20 49 20 64 65 63 | use the|m. I dec|
|00002840| 69 64 65 64 20 6e 6f 74 | 20 74 6f 20 77 72 69 74 |ided not| to writ|
|00002850| 65 0d 73 65 70 61 72 61 | 74 65 20 63 6c 75 74 20 |e.separa|te clut |
|00002860| 6c 6f 61 64 69 6e 67 20 | 6c 6f 6f 70 73 20 66 6f |loading |loops fo|
|00002870| 72 20 74 68 65 20 74 77 | 6f 20 63 61 73 65 73 20 |r the tw|o cases |
|00002880| 28 75 73 65 20 6d 6f 73 | 74 2d 20 76 73 2e 20 6c |(use mos|t- vs. l|
|00002890| 65 61 73 74 2d 73 69 67 | 6e 69 66 69 63 61 6e 74 |east-sig|nificant|
|000028a0| 0d 62 69 74 73 29 2e 20 | 49 20 62 65 6c 69 65 76 |.bits). |I believ|
|000028b0| 65 20 28 62 75 74 20 68 | 61 76 65 20 6e 6f 74 20 |e (but h|ave not |
|000028c0| 74 65 73 74 65 64 29 20 | 74 68 61 74 20 61 64 64 |tested) |that add|
|000028d0| 69 6e 67 20 61 20 72 65 | 67 69 73 74 65 72 20 6f |ing a re|gister o|
|000028e0| 66 66 73 65 74 20 69 6e | 73 74 65 61 64 20 6f 66 |ffset in|stead of|
|000028f0| 0d 75 73 69 6e 67 20 61 | 6e 20 61 75 74 6f 69 6e |.using a|n autoin|
|00002900| 63 72 65 6d 65 6e 74 20 | 69 6e 73 74 72 75 63 74 |crement |instruct|
|00002910| 69 6f 6e 20 69 6e 63 75 | 72 73 20 65 73 73 65 6e |ion incu|rs essen|
|00002920| 74 69 61 6c 6c 79 20 6e | 6f 20 74 69 6d 65 20 70 |tially n|o time p|
|00002930| 65 6e 61 6c 74 79 20 62 | 65 63 61 75 73 65 0d 74 |enalty b|ecause.t|
|00002940| 68 65 20 70 72 6f 63 65 | 73 73 6f 72 20 61 75 74 |he proce|ssor aut|
|00002950| 6f 6d 61 74 69 63 61 6c | 6c 79 20 6f 76 65 72 6c |omatical|ly overl|
|00002960| 61 70 73 20 74 68 65 20 | 65 78 65 63 75 74 69 6f |aps the |executio|
|00002970| 6e 20 6f 66 20 73 75 63 | 68 20 69 6e 73 74 72 75 |n of suc|h instru|
|00002980| 63 74 69 6f 6e 73 2e 20 | 53 6f 20 49 0d 74 68 69 |ctions. |So I.thi|
|00002990| 6e 6b 20 74 68 61 74 20 | 53 65 74 45 6e 74 72 69 |nk that |SetEntri|
|000029a0| 65 73 51 75 69 63 6b 6c | 79 20 69 73 20 72 75 6e |esQuickl|y is run|
|000029b0| 6e 69 6e 67 20 66 6c 61 | 74 20 6f 75 74 2c 20 61 |ning fla|t out, a|
|000029c0| 6e 64 20 64 6f 6e d5 74 | 20 73 65 65 20 61 6e 79 |nd don.t| see any|
|000029d0| 20 70 72 6f 73 70 65 63 | 74 20 6f 66 0d 73 70 65 | prospec|t of.spe|
|000029e0| 65 64 69 6e 67 20 69 74 | 20 75 70 20 73 69 67 6e |eding it| up sign|
|000029f0| 69 66 69 63 61 6e 74 6c | 79 2e 20 4f 6e 20 74 68 |ificantl|y. On th|
|00002a00| 65 20 6f 74 68 65 72 20 | 68 61 6e 64 2c 20 49 20 |e other |hand, I |
|00002a10| 73 75 73 70 65 63 74 20 | 74 68 61 74 20 66 65 74 |suspect |that fet|
|00002a20| 63 68 69 6e 67 20 74 68 | 65 0d 6c 65 61 73 74 20 |ching th|e.least |
|00002a30| 73 69 67 6e 69 66 69 63 | 61 6e 74 20 62 79 74 65 |signific|ant byte|
|00002a40| 20 62 79 20 64 6f 69 6e | 67 20 61 20 62 79 74 65 | by doin|g a byte|
|00002a50| 20 61 63 63 65 73 73 20 | 74 6f 20 61 6e 20 6f 64 | access |to an od|
|00002a60| 64 20 61 64 64 72 65 73 | 73 20 28 66 6f 72 20 6d |d addres|s (for m|
|00002a70| 61 63 6c 74 73 65 74 29 | 0d 64 6f 65 73 20 73 6c |acltset)|.does sl|
|00002a80| 6f 77 20 74 68 69 6e 67 | 73 20 64 6f 77 6e 20 70 |ow thing|s down p|
|00002a90| 65 72 68 61 70 73 20 33 | 30 25 20 28 74 68 6f 75 |erhaps 3|0% (thou|
|00002aa0| 67 68 20 49 20 68 61 76 | 65 6e d5 74 20 74 69 6d |gh I hav|en.t tim|
|00002ab0| 65 64 20 69 74 29 20 6f | 76 65 72 20 64 6f 69 6e |ed it) o|ver doin|
|00002ac0| 67 20 61 20 77 6f 72 64 | 0d 61 63 63 65 73 73 20 |g a word|.access |
|00002ad0| 74 6f 20 61 6e 20 65 76 | 65 6e 20 61 64 64 72 65 |to an ev|en addre|
|00002ae0| 73 73 2c 20 61 73 20 52 | 61 79 6e 61 6c 64 20 68 |ss, as R|aynald h|
|00002af0| 61 64 20 6f 72 69 67 69 | 6e 61 6c 6c 79 20 63 6f |ad origi|nally co|
|00002b00| 64 65 64 20 69 74 2e 20 | 49 66 20 74 68 61 74 20 |ded it. |If that |
|00002b10| 73 70 65 65 64 0d 6c 6f | 73 73 20 69 73 20 75 6e |speed.lo|ss is un|
|00002b20| 61 63 63 65 70 74 61 62 | 6c 65 2c 20 74 68 65 6e |acceptab|le, then|
|00002b30| 20 6f 6e 65 20 63 6f 75 | 6c 64 20 69 6e 73 65 72 | one cou|ld inser|
|00002b40| 74 20 61 6e 20 69 66 28 | 66 6c 61 67 73 26 75 73 |t an if(|flags&us|
|00002b50| 65 4d 6f 73 74 53 69 67 | 6e 69 66 69 63 61 6e 74 |eMostSig|nificant|
|00002b60| 42 69 74 73 29 0d 73 74 | 61 74 65 6d 65 6e 74 20 |Bits).st|atement |
|00002b70| 69 6e 74 6f 20 74 68 65 | 20 72 65 6c 65 76 61 6e |into the| relevan|
|00002b80| 74 20 73 75 62 72 6f 75 | 74 69 6e 65 20 61 6e 64 |t subrou|tine and|
|00002b90| 20 77 72 69 74 65 20 74 | 77 6f 20 73 65 70 61 72 | write t|wo separ|
|00002ba0| 61 74 65 20 6c 6f 6f 70 | 73 20 6f 70 74 69 6d 69 |ate loop|s optimi|
|00002bb0| 7a 65 64 0d 66 6f 72 20 | 74 68 65 20 74 77 6f 20 |zed.for |the two |
|00002bc0| 63 61 73 65 73 2e 20 4d | 79 20 67 75 65 73 73 20 |cases. M|y guess |
|00002bd0| 69 73 20 74 68 61 74 20 | 74 68 65 20 63 75 72 72 |is that |the curr|
|00002be0| 65 6e 74 20 63 6f 6d 70 | 72 6f 6d 69 73 65 20 77 |ent comp|romise w|
|00002bf0| 69 6c 6c 20 62 65 20 61 | 63 63 65 70 74 61 62 6c |ill be a|cceptabl|
|00002c00| 65 20 74 6f 0d 61 6c 6c | 20 75 73 65 72 73 2e 0d |e to.all| users..|
|00002c10| 0d 41 20 4e 4f 54 45 20 | 4f 4e 20 53 50 45 45 44 |.A NOTE |ON SPEED|
|00002c20| 20 46 52 4f 4d 20 44 41 | 56 49 44 20 42 52 41 49 | FROM DA|VID BRAI|
|00002c30| 4e 41 52 44 3a 0d 57 65 | 20 68 61 76 65 20 62 65 |NARD:.We| have be|
|00002c40| 65 6e 20 6c 6f 6f 6b 69 | 6e 67 20 70 72 65 74 74 |en looki|ng prett|
|00002c50| 79 20 63 6c 6f 73 65 6c | 79 20 61 74 20 76 69 64 |y closel|y at vid|
|00002c60| 65 6f 20 74 69 6d 69 6e | 67 2e 20 20 49 6e 20 6f |eo timin|g. In o|
|00002c70| 75 72 20 68 61 6e 64 73 | 2c 0d 53 65 74 45 6e 74 |ur hands|,.SetEnt|
|00002c80| 72 69 65 73 51 75 69 63 | 6b 6c 79 20 64 6f 65 73 |riesQuic|kly does|
|00002c90| 20 6e 6f 74 20 61 6c 77 | 61 79 73 20 73 75 63 63 | not alw|ays succ|
|00002ca0| 65 65 64 20 69 6e 20 77 | 72 69 74 69 6e 67 20 74 |eed in w|riting t|
|00002cb0| 68 65 20 43 4c 55 54 20 | 64 75 72 69 6e 67 20 74 |he CLUT |during t|
|00002cc0| 68 65 0d 76 65 72 74 69 | 63 61 6c 20 62 6c 61 6e |he.verti|cal blan|
|00002cd0| 6b 20 69 6e 74 65 72 76 | 61 6c 2e 20 20 49 6e 20 |k interv|al. In |
|00002ce0| 70 61 72 74 69 63 75 6c | 61 72 2c 20 77 69 74 68 |particul|ar, with|
|00002cf0| 20 74 68 65 20 41 70 70 | 6c 65 20 38 2d 32 34 20 | the App|le 8-24 |
|00002d00| 62 6f 61 72 64 20 6f 6e | 20 61 20 49 49 66 78 0d |board on| a IIfx.|
|00002d10| 72 75 6e 6e 69 6e 67 20 | 69 6e 20 74 68 65 20 38 |running |in the 8|
|00002d20| 30 30 20 62 79 20 36 30 | 30 20 6d 6f 64 65 20 61 |00 by 60|0 mode a|
|00002d30| 74 20 37 35 20 48 7a 2c | 20 69 74 20 69 73 20 61 |t 75 Hz,| it is a|
|00002d40| 20 6c 69 74 74 6c 65 20 | 74 6f 6f 20 73 6c 6f 77 | little |too slow|
|00002d50| 2e 20 20 54 68 69 73 20 | 63 61 75 73 65 73 20 61 |. This |causes a|
|00002d60| 0d 76 69 73 69 62 6c 65 | 20 67 6c 69 74 63 68 20 |.visible| glitch |
|00002d70| 61 74 20 74 68 65 20 74 | 6f 70 20 6f 66 20 74 68 |at the t|op of th|
|00002d80| 65 20 73 63 72 65 65 6e | 2e 20 20 57 68 65 74 68 |e screen|. Wheth|
|00002d90| 65 72 20 69 74 20 69 73 | 20 66 61 73 74 20 65 6e |er it is| fast en|
|00002da0| 6f 75 67 68 20 69 73 20 | 70 72 6f 62 61 62 6c 79 |ough is |probably|
|00002db0| 0d 76 65 72 79 20 68 61 | 72 64 77 61 72 65 2d 63 |.very ha|rdware-c|
|00002dc0| 6f 6e 66 69 67 75 72 61 | 74 69 6f 6e 20 64 65 70 |onfigura|tion dep|
|00002dd0| 65 6e 64 65 6e 74 2c 20 | 62 75 74 20 69 74 20 6d |endent, |but it m|
|00002de0| 69 67 68 74 20 62 65 20 | 77 6f 72 74 68 20 65 6d |ight be |worth em|
|00002df0| 70 68 61 73 69 7a 69 6e | 67 20 69 6e 20 74 68 65 |phasizin|g in the|
|00002e00| 0d 64 6f 63 75 6d 65 6e | 74 61 74 69 6f 6e 20 74 |.documen|tation t|
|00002e10| 68 61 74 20 75 73 65 20 | 69 73 20 63 61 76 65 61 |hat use |is cavea|
|00002e20| 74 20 65 6d 70 74 6f 72 | 2e 20 20 59 6f 75 20 67 |t emptor|. You g|
|00002e30| 69 76 65 20 3c 20 32 20 | 6d 73 20 61 73 20 74 68 |ive < 2 |ms as th|
|00002e40| 65 20 77 72 69 74 65 20 | 74 69 6d 65 2c 0d 77 68 |e write |time,.wh|
|00002e50| 69 63 68 20 69 73 20 72 | 6f 75 67 68 6c 79 20 63 |ich is r|oughly c|
|00002e60| 6f 72 72 65 63 74 2c 20 | 62 75 74 20 6e 6f 74 20 |orrect, |but not |
|00002e70| 61 6c 77 61 79 73 20 66 | 61 73 74 20 65 6e 6f 75 |always f|ast enou|
|00002e80| 67 68 2e 20 49 20 6d 61 | 79 20 65 6e 64 20 75 70 |gh. I ma|y end up|
|00002e90| 20 77 72 69 74 69 6e 67 | 20 61 6e 0d 61 73 73 65 | writing| an.asse|
|00002ea0| 6d 62 6c 65 72 20 76 65 | 72 73 69 6f 6e 20 74 6f |mbler ve|rsion to|
|00002eb0| 20 73 65 65 20 69 66 20 | 49 20 63 61 6e 20 70 75 | see if |I can pu|
|00002ec0| 73 68 20 69 74 20 62 79 | 20 32 35 25 2c 20 77 68 |sh it by| 25%, wh|
|00002ed0| 69 63 68 20 69 73 20 61 | 62 6f 75 74 20 77 68 61 |ich is a|bout wha|
|00002ee0| 74 20 49 20 6e 65 65 64 | 2e 0d 5b 48 6f 77 65 76 |t I need|..[Howev|
|00002ef0| 65 72 2c 20 61 73 73 65 | 6d 62 6c 79 20 63 6f 64 |er, asse|mbly cod|
|00002f00| 65 20 77 6f 6e 27 74 20 | 62 65 20 63 6f 6d 70 61 |e won't |be compa|
|00002f10| 74 69 62 6c 65 20 77 69 | 74 68 20 74 68 65 20 50 |tible wi|th the P|
|00002f20| 6f 77 65 72 20 50 43 2e | 2d 64 67 70 5d 0d 0d 49 |ower PC.|-dgp]..I|
|00002f30| 4d 50 52 4f 56 45 4d 45 | 4e 54 53 3a 0d 49 74 20 |MPROVEME|NTS:.It |
|00002f40| 69 73 20 68 6f 70 65 64 | 20 74 68 61 74 20 6f 74 |is hoped| that ot|
|00002f50| 68 65 72 73 20 77 69 6c | 6c 20 61 64 64 20 74 6f |hers wil|l add to|
|00002f60| 20 74 68 65 20 66 75 6e | 63 74 69 6f 6e 61 6c 69 | the fun|ctionali|
|00002f70| 74 79 20 6f 66 20 74 68 | 69 73 20 72 6f 75 74 69 |ty of th|is routi|
|00002f80| 6e 65 2e 20 50 6c 65 61 | 73 65 0d 73 68 61 72 65 |ne. Plea|se.share|
|00002f90| 20 79 6f 75 72 20 65 6e | 68 61 6e 63 65 6d 65 6e | your en|hancemen|
|00002fa0| 74 73 20 77 69 74 68 20 | 6f 74 68 65 72 73 20 62 |ts with |others b|
|00002fb0| 79 20 73 65 6e 64 69 6e | 67 20 74 68 65 6d 20 74 |y sendin|g them t|
|00002fc0| 6f 20 64 65 6e 69 73 40 | 78 70 2e 70 73 79 63 68 |o denis@|xp.psych|
|00002fd0| 2e 6e 79 75 2e 65 64 75 | 0d 66 6f 72 20 69 6e 63 |.nyu.edu|.for inc|
|00002fe0| 6c 75 73 69 6f 6e 20 69 | 6e 20 74 68 65 20 56 69 |lusion i|n the Vi|
|00002ff0| 64 65 6f 54 6f 6f 6c 62 | 6f 78 2e 0d 0d 54 68 6f |deoToolb|ox...Tho|
|00003000| 73 65 20 77 69 73 68 69 | 6e 67 20 74 6f 20 73 75 |se wishi|ng to su|
|00003010| 70 70 6f 72 74 20 6e 65 | 77 20 76 69 64 65 6f 20 |pport ne|w video |
|00003020| 64 65 76 69 63 65 73 20 | 73 68 6f 75 6c 64 20 62 |devices |should b|
|00003030| 65 67 69 6e 20 62 79 20 | 62 75 79 69 6e 67 20 61 |egin by |buying a|
|00003040| 6e 64 20 72 65 61 64 69 | 6e 67 0d 41 70 70 6c 65 |nd readi|ng.Apple|
|00003050| d5 73 20 44 65 73 69 67 | 6e 69 6e 67 20 43 61 72 |.s Desig|ning Car|
|00003060| 64 73 20 61 6e 64 20 44 | 72 69 76 65 72 73 2c 20 |ds and D|rivers, |
|00003070| 33 72 64 20 45 64 2e 2c | 20 41 64 64 69 73 6f 6e |3rd Ed.,| Addison|
|00003080| 2d 57 65 73 6c 65 79 2c | 20 61 6e 64 20 74 68 65 |-Wesley,| and the|
|00003090| 6e 20 75 73 65 20 74 68 | 65 0d 56 69 64 65 6f 54 |n use th|e.VideoT|
|000030a0| 6f 6f 6c 62 6f 78 20 75 | 74 69 6c 69 74 79 20 47 |oolbox u|tility G|
|000030b0| 65 74 56 69 64 65 6f 44 | 72 69 76 65 72 73 20 74 |etVideoD|rivers t|
|000030c0| 6f 20 63 6f 70 79 20 61 | 6c 6c 20 79 6f 75 72 20 |o copy a|ll your |
|000030d0| 64 72 69 76 65 72 73 20 | 69 6e 74 6f 20 72 65 73 |drivers |into res|
|000030e0| 6f 75 72 63 65 0d 66 69 | 6c 65 73 2c 20 61 6e 64 |ource.fi|les, and|
|000030f0| 20 75 73 65 20 52 65 73 | 45 64 69 74 20 77 69 74 | use Res|Edit wit|
|00003100| 68 20 43 4f 44 45 20 65 | 64 69 74 6f 72 20 74 6f |h CODE e|ditor to|
|00003110| 20 70 65 72 75 73 65 20 | 74 68 65 6d 2e 20 54 68 | peruse |them. Th|
|00003120| 65 20 52 65 73 45 64 69 | 74 20 43 4f 44 45 20 65 |e ResEdi|t CODE e|
|00003130| 64 69 74 6f 72 0d 69 73 | 20 61 20 70 75 62 6c 69 |ditor.is| a publi|
|00003140| 63 20 64 6f 6d 61 69 6e | 20 66 69 6c 65 20 64 69 |c domain| file di|
|00003150| 73 74 72 69 62 75 74 65 | 64 20 62 79 3a 0d 49 72 |stribute|d by:.Ir|
|00003160| 61 20 4c 2e 20 52 75 62 | 65 6e 0d 41 70 70 6c 65 |a L. Rub|en.Apple|
|00003170| 20 43 6f 6d 70 75 74 65 | 72 2c 20 49 6e 63 2e 0d | Compute|r, Inc..|
|00003180| 32 30 35 32 35 20 4d 61 | 72 69 61 6e 69 20 41 76 |20525 Ma|riani Av|
|00003190| 65 2e 2c 20 4d 53 3a 20 | 33 37 2d 41 0d 43 75 70 |e., MS: |37-A.Cup|
|000031a0| 65 72 74 69 6e 6f 2c 20 | 43 61 2e 20 39 35 30 31 |ertino, |Ca. 9501|
|000031b0| 34 0d 49 72 61 40 41 70 | 70 6c 65 2e 43 6f 6d 0d |4.Ira@Ap|ple.Com.|
|000031c0| 66 74 70 3a 2f 2f 66 74 | 70 2e 61 70 70 6c 65 2e |ftp://ft|p.apple.|
|000031d0| 63 6f 6d 2f 64 74 73 2f | 6d 61 63 2f 74 6f 6f 6c |com/dts/|mac/tool|
|000031e0| 73 2f 72 65 73 65 64 69 | 74 2f 72 65 73 65 64 69 |s/resedi|t/resedi|
|000031f0| 74 2d 32 2d 31 2d 63 6f | 64 65 2d 65 64 69 74 6f |t-2-1-co|de-edito|
|00003200| 72 2e 2e 2e 0d 0d 42 79 | 20 74 68 65 20 77 61 79 |r.....By| the way|
|00003210| 2c 20 61 73 73 65 6d 62 | 6c 79 20 63 6f 64 65 20 |, assemb|ly code |
|00003220| 69 73 20 68 61 72 64 20 | 74 6f 20 77 72 69 74 65 |is hard |to write|
|00003230| 2c 20 72 65 61 64 2c 20 | 61 6e 64 20 6d 61 69 6e |, read, |and main|
|00003240| 74 61 69 6e 2c 0d 61 6e | 64 20 74 68 65 20 73 70 |tain,.an|d the sp|
|00003250| 65 65 64 20 61 64 76 61 | 6e 74 61 67 65 20 69 73 |eed adva|ntage is|
|00003260| 20 6e 65 67 6c 69 67 69 | 62 6c 65 2c 20 61 62 6f | negligi|ble, abo|
|00003270| 75 74 20 31 30 25 2e 20 | 49 20 73 75 67 67 65 73 |ut 10%. |I sugges|
|00003280| 74 20 74 68 61 74 0d 61 | 6c 6c 20 6e 65 77 20 63 |t that.a|ll new c|
|00003290| 6f 64 65 20 62 65 20 77 | 72 69 74 74 65 6e 20 69 |ode be w|ritten i|
|000032a0| 6e 20 43 2e 0d 0d 49 74 | 20 69 73 20 6c 6f 67 69 |n C...It| is logi|
|000032b0| 63 61 6c 20 74 68 61 74 | 20 77 65 20 69 64 65 6e |cal that| we iden|
|000032c0| 74 69 66 79 20 74 68 65 | 20 76 69 64 65 6f 20 63 |tify the| video c|
|000032d0| 61 72 64 20 62 79 20 74 | 68 65 20 63 61 72 64 20 |ard by t|he card |
|000032e0| 6e 61 6d 65 2c 0d 47 44 | 43 61 72 64 4e 61 6d 65 |name,.GD|CardName|
|000032f0| 28 64 72 69 76 65 72 29 | 2c 20 62 75 74 20 69 6e |(driver)|, but in|
|00003300| 20 66 61 63 74 20 67 65 | 74 74 69 6e 67 20 74 68 | fact ge|tting th|
|00003310| 65 20 63 61 72 64 20 6e | 61 6d 65 20 69 73 20 76 |e card n|ame is v|
|00003320| 65 72 79 20 73 6c 6f 77 | 20 28 31 2e 35 20 6d 73 |ery slow| (1.5 ms|
|00003330| 29 0d 77 68 65 72 65 61 | 73 20 67 65 74 74 69 6e |).wherea|s gettin|
|00003340| 67 20 74 68 65 20 64 72 | 69 76 65 72 20 6e 61 6d |g the dr|iver nam|
|00003350| 65 20 69 73 20 66 61 73 | 74 2c 20 47 44 4e 61 6d |e is fas|t, GDNam|
|00003360| 65 28 64 72 69 76 65 72 | 29 2c 20 61 6e 64 20 77 |e(driver|), and w|
|00003370| 6f 75 6c 64 20 62 65 0d | 73 75 66 66 69 63 69 65 |ould be.|sufficie|
|00003380| 6e 74 6c 79 20 75 6e 69 | 71 75 65 20 66 6f 72 20 |ntly uni|que for |
|00003390| 6f 75 72 20 70 75 72 70 | 6f 73 65 73 2e 20 28 45 |our purp|oses. (E|
|000033a0| 2e 67 2e 20 74 68 65 20 | 54 6f 62 79 20 61 6e 64 |.g. the |Toby and|
|000033b0| 20 54 46 42 20 76 69 64 | 65 6f 20 63 61 72 64 73 | TFB vid|eo cards|
|000033c0| 20 68 61 76 65 0d 74 68 | 65 20 73 61 6d 65 20 64 | have.th|e same d|
|000033d0| 72 69 76 65 72 2c 20 61 | 6e 64 20 6f 75 72 20 63 |river, a|nd our c|
|000033e0| 6f 64 65 20 77 6f 72 6b | 73 20 66 6f 72 20 62 6f |ode work|s for bo|
|000033f0| 74 68 20 63 61 72 64 73 | 2e 29 20 0d 0d 4b 4e 4f |th cards|.) ..KNO|
|00003400| 57 4e 20 42 55 47 53 3a | 0d 48 61 73 20 6e 6f 74 |WN BUGS:|.Has not|
|00003410| 20 62 65 65 6e 20 74 65 | 73 74 65 64 20 6f 6e 20 | been te|sted on |
|00003420| 61 6c 6c 20 74 68 65 20 | 76 69 64 65 6f 20 64 65 |all the |video de|
|00003430| 76 69 63 65 73 20 74 68 | 61 74 20 61 72 65 20 73 |vices th|at are s|
|00003440| 75 70 70 6f 73 65 64 20 | 74 6f 20 62 65 20 73 75 |upposed |to be su|
|00003450| 70 70 6f 72 74 65 64 2e | 0d 50 6c 65 61 73 65 20 |pported.|.Please |
|00003460| 72 75 6e 20 74 68 65 20 | 64 65 6d 6f 20 54 69 6d |run the |demo Tim|
|00003470| 65 56 69 64 65 6f 2c 20 | 61 6e 64 20 73 65 6e 64 |eVideo, |and send|
|00003480| 20 74 68 65 20 72 65 73 | 75 6c 74 73 20 66 69 6c | the res|ults fil|
|00003490| 65 20 74 6f 20 64 65 6e | 69 73 40 78 70 2e 70 73 |e to den|is@xp.ps|
|000034a0| 79 63 68 2e 6e 79 75 2e | 65 64 75 0d 0d 44 6f 65 |ych.nyu.|edu..Doe|
|000034b0| 73 20 6e 6f 74 20 77 6f | 72 6b 20 77 69 74 68 20 |s not wo|rk with |
|000034c0| 74 68 65 20 52 61 73 74 | 65 72 4f 70 73 20 50 72 |the Rast|erOps Pr|
|000034d0| 6f 43 6f 6c 6f 72 20 33 | 32 2e 20 48 6f 70 65 66 |oColor 3|2. Hopef|
|000034e0| 75 6c 6c 79 20 74 68 69 | 73 20 77 69 6c 6c 20 62 |ully thi|s will b|
|000034f0| 65 20 66 69 78 65 64 20 | 73 6f 6f 6e 2e 0d 0d 54 |e fixed |soon...T|
|00003500| 68 65 20 51 75 61 64 72 | 61 20 63 6f 64 65 20 72 |he Quadr|a code r|
|00003510| 65 71 75 69 72 65 73 20 | 74 68 61 74 20 73 74 61 |equires |that sta|
|00003520| 72 74 3d 3d 30 2e 20 28 | 41 70 70 61 72 65 6e 74 |rt==0. (|Apparent|
|00003530| 6c 79 20 74 68 65 20 73 | 61 6d 65 20 70 72 6f 62 |ly the s|ame prob|
|00003540| 6c 65 6d 20 6f 63 63 75 | 72 73 20 77 68 65 6e 0d |lem occu|rs when.|
|00003550| 72 75 6e 6e 69 6e 67 20 | 74 68 65 20 38 a5 32 34 |running |the 8.24|
|00003560| 20 63 61 72 64 20 6f 6e | 20 61 20 51 75 61 64 72 | card on| a Quadr|
|00003570| 61 20 38 34 30 41 56 2e | 29 20 54 68 69 73 20 63 |a 840AV.|) This c|
|00003580| 6f 75 6c 64 20 70 72 6f | 62 61 62 6c 79 20 62 65 |ould pro|bably be|
|00003590| 20 66 69 67 75 72 65 64 | 20 6f 75 74 20 61 6e 64 | figured| out and|
|000035a0| 0d 66 69 78 65 64 20 70 | 72 65 74 74 79 20 65 61 |.fixed p|retty ea|
|000035b0| 73 69 6c 79 20 69 66 20 | 73 6f 6d 65 6f 6e 65 20 |sily if |someone |
|000035c0| 74 6f 6f 6b 20 74 68 65 | 20 74 69 6d 65 20 74 6f |took the| time to|
|000035d0| 20 64 6f 20 73 6f 2e 0d | 0d 49 20 72 65 63 6f 6d | do so..|.I recom|
|000035e0| 6d 65 6e 64 20 75 73 69 | 6e 67 20 74 68 65 20 73 |mend usi|ng the s|
|000035f0| 74 61 6e 64 61 72 64 20 | 64 72 69 76 65 72 73 20 |tandard |drivers |
|00003600| 28 69 2e 65 2e 20 47 44 | 53 65 74 45 6e 74 72 69 |(i.e. GD|SetEntri|
|00003610| 65 73 2f 47 44 44 69 72 | 65 63 74 53 65 74 45 6e |es/GDDir|ectSetEn|
|00003620| 74 72 69 65 73 29 0d 69 | 6e 73 74 65 61 64 20 6f |tries).i|nstead o|
|00003630| 66 20 53 65 74 45 6e 74 | 72 69 65 73 51 75 69 63 |f SetEnt|riesQuic|
|00003640| 6b 6c 79 20 66 6f 72 20 | 74 68 65 20 54 6f 62 79 |kly for |the Toby|
|00003650| 20 61 6e 64 20 48 69 67 | 68 20 52 65 73 6f 6c 75 | and Hig|h Resolu|
|00003660| 74 69 6f 6e 20 76 69 64 | 65 6f 20 63 61 72 64 73 |tion vid|eo cards|
|00003670| 20 61 6e 64 0d 74 68 65 | 20 4d 61 63 20 49 49 63 | and.the| Mac IIc|
|00003680| 69 20 62 75 69 6c 74 2d | 69 6e 20 76 69 64 65 6f |i built-|in video|
|00003690| 2e 20 54 68 6f 73 65 20 | 73 74 61 6e 64 61 72 64 |. Those |standard|
|000036a0| 20 64 72 69 76 65 72 73 | 20 77 6f 72 6b 20 66 69 | drivers| work fi|
|000036b0| 6e 65 2c 20 77 68 65 72 | 65 61 73 20 66 6f 72 20 |ne, wher|eas for |
|000036c0| 74 68 6f 73 65 0d 64 65 | 76 69 63 65 73 20 53 65 |those.de|vices Se|
|000036d0| 74 45 6e 74 72 69 65 73 | 51 75 69 63 6b 6c 79 20 |tEntries|Quickly |
|000036e0| 70 72 6f 64 75 63 65 73 | 20 76 69 73 69 62 6c 65 |produces| visible|
|000036f0| 20 64 79 6e 61 6d 69 63 | 20 62 6c 61 63 6b 20 73 | dynamic| black s|
|00003700| 70 65 63 6b 73 20 61 73 | 20 69 74 20 61 63 63 65 |pecks as| it acce|
|00003710| 73 73 65 73 0d 74 68 65 | 20 63 6c 75 74 2e 0d 0d |sses.the| clut...|
|00003720| 4e 6f 6e 65 20 6f 66 20 | 74 68 65 73 65 20 72 6f |None of |these ro|
|00003730| 75 74 69 6e 65 73 20 77 | 61 69 74 20 66 6f 72 20 |utines w|ait for |
|00003740| 74 68 65 20 76 65 72 74 | 69 63 61 6c 20 62 6c 61 |the vert|ical bla|
|00003750| 6e 6b 69 6e 67 20 69 6e | 74 65 72 76 61 6c 20 62 |nking in|terval b|
|00003760| 65 66 6f 72 65 20 6c 6f | 61 64 69 6e 67 0d 74 68 |efore lo|ading.th|
|00003770| 65 20 63 6c 75 74 2e 20 | 4f 6e 20 6f 6c 64 65 72 |e clut. |On older|
|00003780| 20 76 69 64 65 6f 20 64 | 65 76 69 63 65 73 2d 2d | video d|evices--|
|00003790| 54 6f 62 79 2c 20 48 69 | 52 65 73 2c 20 4d 61 63 |Toby, Hi|Res, Mac|
|000037a0| 20 49 49 63 69 2d 2d 74 | 68 69 73 20 72 65 73 75 | IIci--t|his resu|
|000037b0| 6c 74 73 20 69 6e 20 76 | 69 73 69 62 6c 65 0d 64 |lts in v|isible.d|
|000037c0| 79 6e 61 6d 69 63 20 62 | 6c 61 63 6b 20 73 70 65 |ynamic b|lack spe|
|000037d0| 63 6b 73 20 6f 6e 20 74 | 68 65 20 73 63 72 65 65 |cks on t|he scree|
|000037e0| 6e 2e 20 49 20 28 64 67 | 70 29 20 63 6f 6e 73 69 |n. I (dg|p) consi|
|000037f0| 64 65 72 20 74 68 69 73 | 20 61 20 62 75 67 2c 20 |der this| a bug, |
|00003800| 62 75 74 2c 20 66 6f 72 | 20 6d 6f 73 74 0d 6f 66 |but, for| most.of|
|00003810| 20 74 68 65 73 65 20 64 | 65 76 69 63 65 73 20 49 | these d|evices I|
|00003820| 20 64 6f 6e d5 74 20 6b | 6e 6f 77 20 68 6f 77 20 | don.t k|now how |
|00003830| 74 6f 20 77 61 69 74 20 | 66 6f 72 20 74 68 65 20 |to wait |for the |
|00003840| 65 6e 64 20 6f 66 20 66 | 72 61 6d 65 2c 20 73 68 |end of f|rame, sh|
|00003850| 6f 72 74 20 6f 66 20 73 | 65 74 74 69 6e 67 0d 75 |ort of s|etting.u|
|00003860| 70 20 61 6e 20 69 6e 74 | 65 72 72 75 70 74 2e 20 |p an int|errupt. |
|00003870| 28 4a 75 73 74 20 61 62 | 6f 75 74 20 65 76 65 72 |(Just ab|out ever|
|00003880| 79 20 76 69 64 65 6f 20 | 63 61 72 64 20 68 61 73 |y video |card has|
|00003890| 20 61 20 62 69 74 20 74 | 68 61 74 20 6f 6e 65 20 | a bit t|hat one |
|000038a0| 63 6f 75 6c 64 20 6d 6f | 6e 69 74 6f 72 2c 0d 62 |could mo|nitor,.b|
|000038b0| 75 74 20 69 74 73 20 61 | 64 64 72 65 73 73 20 69 |ut its a|ddress i|
|000038c0| 73 20 75 73 75 61 6c 6c | 79 20 75 6e 64 6f 63 75 |s usuall|y undocu|
|000038d0| 6d 65 6e 74 65 64 2e 29 | 20 4e 65 77 65 72 20 64 |mented.)| Newer d|
|000038e0| 65 76 69 63 65 73 20 73 | 65 65 6d 20 74 6f 20 62 |evices s|eem to b|
|000038f0| 65 20 6f 6b 2c 20 62 65 | 63 61 75 73 65 20 6f 66 |e ok, be|cause of|
|00003900| 0d 64 75 61 6c 2d 70 6f | 72 74 65 64 20 52 41 4d |.dual-po|rted RAM|
|00003910| 44 41 43 20 6d 65 6d 6f | 72 79 2e 20 43 68 65 63 |DAC memo|ry. Chec|
|00003920| 6b 20 74 68 69 73 20 6f | 75 74 20 6f 6e 20 79 6f |k this o|ut on yo|
|00003930| 75 72 20 64 65 76 69 63 | 65 73 20 62 79 20 72 75 |ur devic|es by ru|
|00003940| 6e 6e 69 6e 67 20 54 69 | 6d 65 56 69 64 65 6f 2e |nning Ti|meVideo.|
|00003950| 0d 0d 51 55 41 44 52 41 | 20 36 36 30 41 56 20 26 |..QUADRA| 660AV &|
|00003960| 20 38 34 30 41 56 0d 42 | 65 6e 20 53 69 6e 67 65 | 840AV.B|en Singe|
|00003970| 72 2c 20 62 65 6e 73 40 | 73 77 69 66 74 2e 63 76 |r, bens@|swift.cv|
|00003980| 73 2e 72 6f 63 68 65 73 | 74 65 72 2e 65 64 75 2c |s.roches|ter.edu,|
|00003990| 20 77 72 69 74 65 73 2c | 0d 22 49 20 74 68 6f 75 | writes,|."I thou|
|000039a0| 67 68 74 20 74 68 69 73 | 20 69 6e 66 6f 72 6d 61 |ght this| informa|
|000039b0| 74 69 6f 6e 20 77 6f 75 | 6c 64 20 70 72 6f 76 65 |tion wou|ld prove|
|000039c0| 20 75 73 65 66 75 6c 20 | 74 6f 20 61 6e 79 6f 6e | useful |to anyon|
|000039d0| 65 20 75 73 69 6e 67 20 | 56 69 64 65 6f 54 6f 6f |e using |VideoToo|
|000039e0| 6c 62 6f 78 20 6f 6e 20 | 61 0d 36 36 30 41 56 20 |lbox on |a.660AV |
|000039f0| 6f 72 20 38 34 30 41 56 | 20 28 74 68 65 20 6d 61 |or 840AV| (the ma|
|00003a00| 63 68 69 6e 65 73 27 20 | 76 69 64 65 6f 20 64 72 |chines' |video dr|
|00003a10| 69 76 65 72 73 20 61 72 | 65 20 69 64 65 6e 74 69 |ivers ar|e identi|
|00003a20| 63 61 6c 29 2e 20 49 74 | 27 73 20 70 6f 73 73 69 |cal). It|'s possi|
|00003a30| 62 6c 65 20 74 6f 0d 6c | 6f 61 64 20 74 68 65 20 |ble to.l|oad the |
|00003a40| 63 6c 75 74 20 6f 6e 20 | 36 36 30 2f 38 34 30 41 |clut on |660/840A|
|00003a50| 56 27 73 20 75 73 69 6e | 67 20 74 68 65 20 66 6f |V's usin|g the fo|
|00003a60| 6c 6c 6f 77 69 6e 67 20 | 63 6f 64 65 20 69 6e 66 |llowing |code inf|
|00003a70| 6f 72 6d 61 74 69 6f 6e | 3a 0d 0d 49 4e 49 54 49 |ormation|:..INITI|
|00003a80| 41 4c 49 5a 41 54 49 4f | 4e 20 49 4e 46 4f 3a 20 |ALIZATIO|N INFO: |
|00003a90| 0d 0d 73 6c 6f 74 20 69 | 64 27 73 20 66 6f 72 20 |..slot i|d's for |
|00003aa0| 73 6c 6f 74 20 30 20 28 | 69 6e 74 65 72 6e 61 6c |slot 0 (|internal|
|00003ab0| 20 76 69 64 65 6f 29 3a | 0d 0d 71 75 61 64 72 61 | video):|..quadra|
|00003ac0| 36 36 30 20 3d 20 30 78 | 35 30 3b 20 2f 2f 20 71 |660 = 0x|50; // q|
|00003ad0| 75 61 64 72 61 20 36 36 | 30 41 56 20 69 6e 74 65 |uadra 66|0AV inte|
|00003ae0| 72 6e 61 6c 20 76 69 64 | 65 6f 0d 71 75 61 64 72 |rnal vid|eo.quadr|
|00003af0| 61 38 34 30 20 3d 20 30 | 78 33 44 3b 20 2f 2f 20 |a840 = 0|x3D; // |
|00003b00| 71 75 61 64 72 61 20 38 | 34 30 41 56 20 69 6e 74 |quadra 8|40AV int|
|00003b10| 65 72 6e 61 6c 20 76 69 | 64 65 6f 0d 0d 64 72 69 |ernal vi|deo..dri|
|00003b20| 76 65 72 20 6e 61 6d 65 | 20 69 6e 20 65 61 63 68 |ver name| in each|
|00003b30| 20 63 61 73 65 20 69 73 | 20 22 2e 44 69 73 70 6c | case is| ".Displ|
|00003b40| 61 79 5f 56 69 64 65 6f | 5f 41 70 70 6c 65 5f 43 |ay_Video|_Apple_C|
|00003b50| 69 76 69 63 22 0d 63 61 | 72 64 20 6e 61 6d 65 20 |ivic".ca|rd name |
|00003b60| 66 6f 72 20 36 36 30 41 | 56 20 69 73 20 22 4d 61 |for 660A|V is "Ma|
|00003b70| 63 69 6e 74 6f 73 68 20 | 33 42 22 0d 63 61 72 64 |cintosh |3B".card|
|00003b80| 20 6e 61 6d 65 20 66 6f | 72 20 38 34 30 41 56 20 | name fo|r 840AV |
|00003b90| 69 73 20 22 4d 61 63 69 | 6e 74 6f 73 68 20 33 41 |is "Maci|ntosh 3A|
|00003ba0| 22 0d 0d 43 41 52 44 42 | 41 53 45 20 49 4e 46 4f |"..CARDB|ASE INFO|
|00003bb0| 3a 0d 0d 63 61 73 65 20 | 71 75 61 64 72 61 36 36 |:..case |quadra66|
|00003bc0| 30 3a 0d 63 61 73 65 20 | 71 75 61 64 72 61 38 34 |0:.case |quadra84|
|00003bd0| 30 3a 0d 20 20 20 7b 09 | 0d 09 61 73 6d 20 7b 0d |0:. {.|..asm {.|
|00003be0| 09 09 6d 6f 76 65 2e 6c | 20 30 78 44 44 38 2c 61 |..move.l| 0xDD8,a|
|00003bf0| 30 09 09 2f 2f 20 69 6e | 74 65 72 6e 61 6c 20 76 |0..// in|ternal v|
|00003c00| 69 64 65 6f 20 30 34 30 | 20 41 56 27 73 0d 09 09 |ideo 040| AV's...|
|00003c10| 61 64 64 61 2e 6c 20 28 | 61 30 29 2c 61 30 0d 09 |adda.l (|a0),a0..|
|00003c20| 09 6d 6f 76 65 2e 6c 20 | 31 36 34 28 61 30 29 2c |.move.l |164(a0),|
|00003c30| 61 31 0d 09 09 6d 6f 76 | 65 2e 6c 20 61 31 2c 63 |a1...mov|e.l a1,c|
|00003c40| 61 72 64 42 61 73 65 0d | 09 7d 0d 09 62 72 65 61 |ardBase.|.}..brea|
|00003c50| 6b 3b 0d 20 20 20 7d 0d | 0d 4c 4f 41 44 43 4c 55 |k;. }.|.LOADCLU|
|00003c60| 54 20 49 4e 46 4f 3a 0d | 0d 63 61 73 65 20 71 75 |T INFO:.|.case qu|
|00003c70| 61 64 72 61 36 36 30 3a | 0d 63 61 73 65 20 71 75 |adra660:|.case qu|
|00003c80| 61 64 72 61 38 34 30 3a | 0d 20 20 20 7b 0d 09 61 |adra840:|. {..a|
|00003c90| 73 6d 20 7b 09 2f 2f 20 | 6e 6f 20 5f 53 77 61 70 |sm {.// |no _Swap|
|00003ca0| 4d 4d 55 4d 6f 64 65 3b | 20 30 34 30 20 41 56 27 |MMUMode;| 040 AV'|
|00003cb0| 73 20 61 6c 77 61 79 73 | 20 69 6e 20 33 32 2d 62 |s always| in 32-b|
|00003cc0| 69 74 20 6d 6f 64 65 0d | 09 09 6d 6f 76 65 2e 6c |it mode.|..move.l|
|00003cd0| 20 63 61 72 64 42 61 73 | 65 2c 61 31 20 20 0d 09 | cardBas|e,a1 ..|
|00003ce0| 09 6c 65 61 20 30 78 31 | 30 28 61 31 29 2c 61 31 |.lea 0x1|0(a1),a1|
|00003cf0| 09 2f 2f 20 6f 66 66 73 | 65 74 73 20 30 78 31 30 |.// offs|ets 0x10|
|00003d00| 2c 30 78 31 31 30 2c 30 | 78 32 31 30 2c 30 78 33 |,0x110,0|x210,0x3|
|00003d10| 31 30 20 77 6f 72 6b 0d | 09 09 63 6c 72 2e 6c 20 |10 work.|..clr.l |
|00003d20| 2d 31 36 28 61 31 29 0d | 09 09 6d 6f 76 65 20 73 |-16(a1).|..move s|
|00003d30| 72 2c 2d 28 61 37 29 0d | 09 09 6f 72 69 20 23 30 |r,-(a7).|..ori #0|
|00003d40| 78 37 30 30 2c 73 72 09 | 2f 2f 20 64 69 73 61 62 |x700,sr.|// disab|
|00003d50| 6c 65 20 69 6e 74 65 72 | 72 75 70 74 73 0d 09 09 |le inter|rupts...|
|00003d60| 73 75 62 71 2e 6c 20 23 | 31 2c 63 6f 75 6e 74 20 |subq.l #|1,count |
|00003d70| 2f 2f 20 6d 61 79 20 77 | 61 6e 74 20 74 6f 20 74 |// may w|ant to t|
|00003d80| 61 6b 65 20 74 68 69 73 | 20 6f 75 74 20 66 6f 72 |ake this| out for|
|00003d90| 20 56 69 64 54 42 0d 09 | 09 63 6c 72 2e 6c 20 64 | VidTB..|.clr.l d|
|00003da0| 31 0d 09 40 31 09 6d 6f | 76 65 2e 77 20 28 72 65 |1..@1.mo|ve.w (re|
|00003db0| 64 29 2b 2c 64 31 0d 09 | 09 6d 6f 76 65 2e 62 20 |d)+,d1..|.move.b |
|00003dc0| 64 31 2c 28 61 31 29 0d | 09 09 6d 6f 76 65 2e 77 |d1,(a1).|..move.w|
|00003dd0| 20 28 67 72 65 65 6e 29 | 2b 2c 64 31 0d 09 09 6d | (green)|+,d1...m|
|00003de0| 6f 76 65 2e 62 20 64 31 | 2c 28 61 31 29 0d 09 09 |ove.b d1|,(a1)...|
|00003df0| 6d 6f 76 65 2e 77 20 28 | 62 6c 75 65 29 2b 2c 64 |move.w (|blue)+,d|
|00003e00| 31 0d 09 09 6d 6f 76 65 | 2e 62 20 64 31 2c 28 61 |1...move|.b d1,(a|
|00003e10| 31 29 0d 09 09 63 6c 72 | 2e 62 20 28 61 31 29 0d |1)...clr|.b (a1).|
|00003e20| 09 09 64 62 66 20 63 6f | 75 6e 74 2c 40 31 0d 09 |..dbf co|unt,@1..|
|00003e30| 09 6d 6f 76 65 20 28 61 | 37 29 2b 2c 73 72 09 2f |.move (a|7)+,sr./|
|00003e40| 2f 20 65 6e 61 62 6c 65 | 20 69 6e 74 65 72 72 75 |/ enable| interru|
|00003e50| 70 74 73 0d 09 7d 0d 20 | 20 20 7d 0d 20 20 20 62 |pts..}. | }. b|
|00003e60| 72 65 61 6b 3b 0d 0d 49 | 27 76 65 20 74 65 73 74 |reak;..I|'ve test|
|00003e70| 65 64 20 74 68 69 73 20 | 6f 6e 20 62 6f 74 68 20 |ed this |on both |
|00003e80| 74 68 65 20 36 36 30 41 | 56 20 61 6e 64 20 38 34 |the 660A|V and 84|
|00003e90| 30 41 56 2c 20 62 75 74 | 20 6f 6e 6c 79 20 69 6e |0AV, but| only in|
|00003ea0| 20 38 2d 62 69 74 20 28 | 22 32 35 36 0d 63 6f 6c | 8-bit (|"256.col|
|00003eb0| 6f 72 73 22 3b 63 6f 75 | 6e 74 3d 32 35 36 29 20 |ors";cou|nt=256) |
|00003ec0| 6d 6f 64 65 2e 20 41 73 | 20 77 69 74 68 20 6f 74 |mode. As| with ot|
|00003ed0| 68 65 72 20 71 75 61 64 | 72 61 20 69 6e 74 65 72 |her quad|ra inter|
|00003ee0| 6e 61 6c 20 76 69 64 65 | 6f 20 63 6f 64 65 2c 20 |nal vide|o code, |
|00003ef0| 74 68 69 73 20 64 6f 65 | 73 6e 27 74 0d 69 6e 63 |this doe|sn't.inc|
|00003f00| 6f 72 70 6f 72 61 74 65 | 20 74 68 65 20 22 73 74 |orporate| the "st|
|00003f10| 61 72 74 22 20 70 61 72 | 61 6d 65 74 65 72 2e 20 |art" par|ameter. |
|00003f20| 54 68 61 6e 6b 73 20 74 | 6f 20 50 65 74 65 72 20 |Thanks t|o Peter |
|00003f30| 4c 65 6e 6e 69 65 2e 20 | 54 68 61 6e 6b 73 20 61 |Lennie. |Thanks a|
|00003f40| 6c 73 6f 20 74 6f 20 79 | 6f 75 0d 66 6f 72 20 47 |lso to y|ou.for G|
|00003f50| 72 61 62 44 72 69 76 65 | 72 20 61 6e 64 20 74 68 |rabDrive|r and th|
|00003f60| 65 20 74 69 70 20 6f 6e | 20 75 73 69 6e 67 20 74 |e tip on| using t|
|00003f70| 68 65 20 52 65 73 45 64 | 69 74 20 43 4f 44 45 20 |he ResEd|it CODE |
|00003f80| 65 78 74 65 6e 73 69 6f | 6e 20 74 6f 20 65 78 61 |extensio|n to exa|
|00003f90| 6d 69 6e 65 20 74 68 65 | 0d 64 69 73 61 73 73 65 |mine the|.disasse|
|00003fa0| 6d 62 6c 79 2e 0d 0d 42 | 65 6e 20 53 69 6e 67 65 |mbly...B|en Singe|
|00003fb0| 72 0d 50 6f 73 74 64 6f | 63 2c 20 43 65 6e 74 65 |r.Postdo|c, Cente|
|00003fc0| 72 20 66 6f 72 20 56 69 | 73 75 61 6c 20 53 63 69 |r for Vi|sual Sci|
|00003fd0| 65 6e 63 65 0d 55 6e 69 | 76 65 72 73 69 74 79 20 |ence.Uni|versity |
|00003fe0| 6f 66 20 52 6f 63 68 65 | 73 74 65 72 0d 62 65 6e |of Roche|ster.ben|
|00003ff0| 73 40 73 77 69 66 74 2e | 63 76 73 2e 72 6f 63 68 |s@swift.|cvs.roch|
|00004000| 65 73 74 65 72 2e 65 64 | 75 20 28 42 65 6e 20 53 |ester.ed|u (Ben S|
|00004010| 69 6e 67 65 72 29 0d 0d | 52 41 53 54 45 52 4f 50 |inger)..|RASTEROP|
|00004020| 53 20 38 4c 20 26 20 32 | 34 4c 3a 0d 52 68 65 61 |S 8L & 2|4L:.Rhea|
|00004030| 20 45 73 6b 65 77 2c 20 | 65 73 6b 65 77 40 6e 65 | Eskew, |eskew@ne|
|00004040| 75 2e 65 64 75 2c 20 77 | 72 69 74 65 73 20 22 49 |u.edu, w|rites "I|
|00004050| 20 75 73 65 20 61 20 52 | 61 73 74 65 72 4f 70 73 | use a R|asterOps|
|00004060| 20 38 4c 20 62 6f 61 72 | 64 20 28 69 74 27 73 20 | 8L boar|d (it's |
|00004070| 70 72 6f 62 61 62 6c 79 | 0d 6f 62 73 6f 6c 65 74 |probably|.obsolet|
|00004080| 65 20 6e 6f 77 29 2c 20 | 77 68 69 63 68 20 68 61 |e now), |which ha|
|00004090| 73 20 6f 6e 65 20 6f 66 | 20 74 68 6f 73 65 20 6c |s one of| those l|
|000040a0| 6f 75 73 79 20 64 72 69 | 76 65 72 73 2e 20 48 6f |ousy dri|vers. Ho|
|000040b0| 77 65 76 65 72 2c 20 52 | 61 73 74 65 72 4f 70 73 |wever, R|asterOps|
|000040c0| 20 77 61 73 20 6e 69 63 | 65 0d 65 6e 6f 75 67 68 | was nic|e.enough|
|000040d0| 20 74 6f 20 70 72 6f 76 | 69 64 65 20 6d 65 20 77 | to prov|ide me w|
|000040e0| 69 74 68 20 74 68 65 20 | 72 65 67 69 73 74 65 72 |ith the |register|
|000040f0| 20 61 64 64 72 65 73 73 | 20 61 6e 64 20 74 68 65 | address| and the|
|00004100| 20 62 6c 61 6e 6b 69 6e | 67 20 62 69 74 20 61 64 | blankin|g bit ad|
|00004110| 64 72 65 73 73 2c 20 73 | 6f 0d 49 20 77 72 69 74 |dress, s|o.I writ|
|00004120| 65 20 64 69 72 65 63 74 | 6c 79 20 74 6f 20 74 68 |e direct|ly to th|
|00004130| 65 20 68 61 72 64 77 61 | 72 65 2e 20 54 68 65 20 |e hardwa|re. The |
|00004140| 52 61 73 74 65 72 4f 70 | 73 20 38 4c 20 69 73 20 |RasterOp|s 8L is |
|00004150| 74 68 65 20 73 61 6d 65 | 20 61 73 20 74 68 65 20 |the same| as the |
|00004160| 32 34 4c 2c 20 6a 75 73 | 74 0d 6c 65 73 73 20 6d |24L, jus|t.less m|
|00004170| 65 6d 6f 72 79 2e 20 53 | 6f 20 49 20 70 72 65 73 |emory. S|o I pres|
|00004180| 75 6d 65 20 74 68 65 20 | 72 65 67 69 73 74 65 72 |ume the |register|
|00004190| 20 61 64 64 72 65 73 73 | 65 73 20 61 72 65 20 74 | address|es are t|
|000041a0| 68 65 20 73 61 6d 65 20 | 66 6f 72 20 74 68 65 20 |he same |for the |
|000041b0| 74 77 6f 0d 62 6f 61 72 | 64 73 2e 20 54 68 65 20 |two.boar|ds. The |
|000041c0| 62 6f 61 72 64 27 73 20 | 62 61 73 65 20 61 64 64 |board's |base add|
|000041d0| 72 65 73 73 20 69 73 20 | 46 78 30 30 30 30 30 30 |ress is |Fx000000|
|000041e0| 2c 20 77 68 65 72 65 20 | 78 3d 4e 75 62 75 73 20 |, where |x=Nubus |
|000041f0| 73 6c 6f 74 20 6e 75 6d | 62 65 72 2e 20 54 68 65 |slot num|ber. The|
|00004200| 0d 43 4c 55 54 20 6f 66 | 66 73 65 74 20 69 73 20 |.CLUT of|fset is |
|00004210| 46 41 30 30 30 30 2e 20 | 54 68 65 20 76 65 72 74 |FA0000. |The vert|
|00004220| 69 63 61 6c 20 62 6c 61 | 6e 6b 69 6e 67 20 62 69 |ical bla|nking bi|
|00004230| 74 20 69 73 20 61 74 20 | 6f 66 66 73 65 74 20 46 |t is at |offset F|
|00004240| 37 30 30 30 30 2e 20 57 | 61 69 74 20 66 6f 72 0d |70000. W|ait for.|
|00004250| 62 69 74 73 20 31 20 61 | 6e 64 20 32 20 74 6f 20 |bits 1 a|nd 2 to |
|00004260| 62 6f 74 68 20 67 6f 20 | 68 69 67 68 2c 20 74 68 |both go |high, th|
|00004270| 65 6e 20 6c 6f 77 2e 20 | 49 67 6e 6f 72 65 20 62 |en low. |Ignore b|
|00004280| 69 74 20 30 2e 0d 20 20 | 20 20 20 48 65 72 65 20 |it 0.. | Here |
|00004290| 69 73 20 74 68 65 20 36 | 38 30 78 30 20 61 73 73 |is the 6|80x0 ass|
|000042a0| 65 6d 62 6c 79 20 63 6f | 64 65 20 74 68 61 74 20 |embly co|de that |
|000042b0| 49 20 75 73 65 20 74 6f | 20 77 72 69 74 65 20 64 |I use to| write d|
|000042c0| 69 72 65 63 74 6c 79 20 | 74 6f 20 74 68 65 20 68 |irectly |to the h|
|000042d0| 61 72 64 77 61 72 65 20 | 6f 66 0d 6d 79 20 52 61 |ardware |of.my Ra|
|000042e0| 73 74 65 72 4f 70 73 20 | 38 4c 20 62 6f 61 72 64 |sterOps |8L board|
|000042f0| 2c 20 74 6f 20 66 69 6c | 6c 20 74 68 65 20 63 6c |, to fil|l the cl|
|00004300| 75 74 2e 20 49 74 27 73 | 20 62 61 73 65 64 20 6f |ut. It's| based o|
|00004310| 6e 20 73 6f 6d 65 20 61 | 73 6d 20 73 75 70 70 6c |n some a|sm suppl|
|00004320| 69 65 64 20 62 79 0d 52 | 61 73 74 65 72 4f 70 73 |ied by.R|asterOps|
|00004330| 2e 20 42 65 63 61 75 73 | 65 20 49 20 75 73 65 20 |. Becaus|e I use |
|00004340| 46 4f 52 54 48 2c 20 74 | 68 65 20 6f 70 63 6f 64 |FORTH, t|he opcod|
|00004350| 65 20 63 6f 6e 76 65 6e | 74 69 6f 6e 73 20 73 68 |e conven|tions sh|
|00004360| 6f 77 6e 20 62 65 6c 6f | 77 20 6c 6f 6f 6b 20 61 |own belo|w look a|
|00004370| 20 62 69 74 0d 64 69 66 | 66 65 72 65 6e 74 20 66 | bit.dif|ferent f|
|00004380| 72 6f 6d 20 63 6f 6e 76 | 65 6e 74 69 6f 6e 61 6c |rom conv|entional|
|00004390| 20 36 38 30 78 30 20 6f | 70 63 6f 64 65 73 2c 20 | 680x0 o|pcodes, |
|000043a0| 62 75 74 20 6f 66 20 63 | 6f 75 72 73 65 20 74 68 |but of c|ourse th|
|000043b0| 65 79 20 64 6f 20 74 68 | 65 20 73 61 6d 65 0d 74 |ey do th|e same.t|
|000043c0| 68 69 6e 67 73 2e 20 49 | 20 74 68 69 6e 6b 20 74 |hings. I| think t|
|000043d0| 68 65 79 20 63 6f 75 6c | 64 20 62 65 20 66 69 67 |hey coul|d be fig|
|000043e0| 75 72 65 64 20 6f 75 74 | 20 70 72 65 74 74 79 20 |ured out| pretty |
|000043f0| 65 61 73 69 6c 79 20 28 | 61 6e 64 20 49 27 6d 20 |easily (|and I'm |
|00004400| 61 76 61 69 6c 61 62 6c | 65 20 69 66 0d 73 6f 6d |availabl|e if.som|
|00004410| 65 6f 6e 65 20 77 61 6e | 74 73 20 68 65 6c 70 29 |eone wan|ts help)|
|00004420| 2e 22 0d 68 65 78 20 09 | 09 09 09 09 09 5c 20 65 |.".hex .|.....\ e|
|00004430| 76 65 72 79 74 68 69 6e | 67 27 73 20 69 6e 20 68 |verythin|g's in h|
|00004440| 65 78 0d 46 43 30 30 30 | 30 30 30 20 63 6f 6e 73 |ex.FC000|000 cons|
|00004450| 74 61 6e 74 20 43 61 72 | 64 62 61 73 65 09 5c 20 |tant Car|dbase.\ |
|00004460| 6d 79 20 63 61 72 64 20 | 69 73 20 69 6e 20 73 6c |my card |is in sl|
|00004470| 6f 74 20 43 20 2d 2d 20 | 74 68 65 20 62 61 73 65 |ot C -- |the base|
|00004480| 20 61 64 64 72 65 73 73 | 20 69 73 0d 09 09 09 09 | address| is.....|
|00004490| 09 09 09 5c 20 46 78 30 | 30 30 30 30 30 3b 20 73 |...\ Fx0|00000; s|
|000044a0| 75 62 73 74 69 74 75 74 | 65 20 79 6f 75 72 20 68 |ubstitut|e your h|
|000044b0| 65 78 20 73 6c 6f 74 20 | 23 20 66 6f 72 20 78 0d |ex slot |# for x.|
|000044c0| 43 61 72 64 42 61 73 65 | 20 46 41 30 30 30 30 20 |CardBase| FA0000 |
|000044d0| 2b 20 63 6f 6e 73 74 61 | 6e 74 20 43 6c 75 74 42 |+ consta|nt ClutB|
|000044e0| 61 73 65 09 09 5c 20 52 | 61 73 74 65 72 4f 70 73 |ase..\ R|asterOps|
|000044f0| 2d 73 75 70 70 6c 69 65 | 64 20 6f 66 66 73 65 74 |-supplie|d offset|
|00004500| 0d 43 61 72 64 42 41 53 | 45 20 46 37 30 30 30 30 |.CardBAS|E F70000|
|00004510| 09 2b 20 63 6f 6e 73 74 | 61 6e 74 20 56 65 72 74 |.+ const|ant Vert|
|00004520| 42 69 74 4f 66 66 09 5c | 20 6f 66 66 73 65 74 20 |BitOff.\| offset |
|00004530| 74 6f 20 76 65 72 74 69 | 63 61 6c 20 62 6c 61 6e |to verti|cal blan|
|00004540| 6b 69 6e 67 20 72 65 67 | 69 73 74 65 72 0d 5c 20 |king reg|ister.\ |
|00004550| 54 68 69 73 20 69 73 20 | 61 20 46 4f 52 54 48 20 |This is |a FORTH |
|00004560| 63 6f 64 65 20 72 6f 75 | 74 69 6e 65 20 2d 2d 20 |code rou|tine -- |
|00004570| 74 61 6b 65 73 20 61 73 | 20 73 74 61 63 6b 2d 69 |takes as| stack-i|
|00004580| 6e 70 75 74 20 70 61 72 | 61 6d 65 74 65 72 73 20 |nput par|ameters |
|00004590| 74 68 65 20 6c 69 73 74 | 65 64 0d 5c 20 6e 75 6d |the list|ed.\ num|
|000045a0| 62 65 72 73 20 77 69 74 | 68 20 56 65 72 74 42 69 |bers wit|h VertBi|
|000045b0| 74 4f 66 66 20 6f 6e 20 | 74 6f 70 20 6f 66 20 73 |tOff on |top of s|
|000045c0| 74 61 63 6b 2e 0d 5c 20 | 43 6c 75 74 42 61 73 65 |tack..\ |ClutBase|
|000045d0| 20 69 73 20 62 61 73 65 | 20 61 64 64 72 20 6f 66 | is base| addr of|
|000045e0| 20 72 61 73 74 65 72 6f | 70 73 20 62 6f 61 72 64 | rastero|ps board|
|000045f0| 20 28 46 43 41 30 30 30 | 30 20 66 6f 72 20 73 6c | (FCA000|0 for sl|
|00004600| 6f 74 20 43 29 2b 43 6c | 75 74 6f 66 66 73 65 74 |ot C)+Cl|utoffset|
|00004610| 20 28 30 30 46 41 30 30 | 30 30 29 0d 5c 20 53 6f | (00FA00|00).\ So|
|00004620| 75 72 63 65 61 64 64 72 | 20 69 73 20 62 61 73 65 |urceaddr| is base|
|00004630| 20 61 64 64 72 65 73 73 | 20 69 6e 20 52 41 4d 20 | address| in RAM |
|00004640| 6f 66 20 74 68 65 20 43 | 6f 6c 6f 72 53 70 65 63 |of the C|olorSpec|
|00004650| 73 20 28 69 6e 64 65 78 | 2c 72 65 64 2c 67 72 65 |s (index|,red,gre|
|00004660| 65 6e 2c 62 6c 75 65 29 | 2e 0d 5c 20 63 6f 75 6e |en,blue)|..\ coun|
|00004670| 74 20 69 73 20 6e 75 6d | 62 65 72 27 6f 66 27 65 |t is num|ber'of'e|
|00004680| 6d 2e 20 28 54 68 65 20 | 63 6c 75 74 20 64 61 74 |m. (The |clut dat|
|00004690| 61 20 61 72 65 20 73 74 | 6f 72 65 64 20 61 73 20 |a are st|ored as |
|000046a0| 57 4f 52 44 53 20 6e 6f | 74 20 62 79 74 65 73 2e |WORDS no|t bytes.|
|000046b0| 29 0d 5c 20 56 65 72 74 | 42 69 74 4f 66 66 20 69 |).\ Vert|BitOff i|
|000046c0| 73 20 72 65 67 69 73 74 | 65 72 20 66 6f 72 20 76 |s regist|er for v|
|000046d0| 65 72 74 69 63 61 6c 20 | 62 6c 61 6e 6b 69 6e 67 |ertical |blanking|
|000046e0| 20 28 52 4f 62 61 73 65 | 2b 46 37 30 30 30 30 29 | (RObase|+F70000)|
|000046f0| 0d 5c 20 27 73 70 27 20 | 73 74 61 6e 64 73 20 66 |.\ 'sp' |stands f|
|00004700| 6f 72 20 73 74 61 63 6b | 20 70 6f 69 6e 74 65 72 |or stack| pointer|
|00004710| 20 3d 20 72 65 67 69 73 | 74 65 72 20 61 37 0d 5c | = regis|ter a7.\|
|00004720| 20 28 54 68 69 73 20 76 | 65 72 73 69 6f 6e 20 73 | (This v|ersion s|
|00004730| 65 65 6d 73 20 74 6f 20 | 77 6f 72 6b 20 77 2f 6f |eems to |work w/o|
|00004740| 20 67 6c 69 74 63 68 65 | 73 20 2d 2d 20 6d 6f 76 | glitche|s -- mov|
|00004750| 65 64 20 62 6c 61 6e 6b | 69 6e 67 20 75 70 20 74 |ed blank|ing up t|
|00004760| 6f 20 74 6f 70 20 6f 66 | 20 72 6f 75 74 69 6e 65 |o top of| routine|
|00004770| 2e 29 0d 63 6f 64 65 09 | 52 2d 4f 53 65 74 50 61 |.).code.|R-OSetPa|
|00004780| 6c 20 28 20 43 6c 75 74 | 42 61 73 65 5c 53 6f 75 |l ( Clut|Base\Sou|
|00004790| 72 63 65 61 64 64 72 5c | 63 6f 75 6e 74 5c 56 65 |rceaddr\|count\Ve|
|000047a0| 72 74 42 69 74 4f 66 66 | 20 2d 2d 20 29 0d 09 31 |rtBitOff| -- )..1|
|000047b0| 20 20 44 30 20 4d 4f 56 | 45 51 2c 20 41 30 35 44 | D0 MOV|EQ, A05D|
|000047c0| 20 77 2c 09 5c 20 73 77 | 61 70 70 6d 6d 75 6d 6f | w,.\ sw|appmmumo|
|000047d0| 64 65 20 74 6f 20 33 32 | 62 69 74 0d 09 61 34 09 |de to 32|bit..a4.|
|000047e0| 64 33 09 6c 6f 6e 67 09 | 6d 6f 76 65 2c 09 5c 20 |d3.long.|move,.\ |
|000047f0| 73 61 76 65 20 55 50 20 | 28 61 34 29 20 69 6e 20 |save UP |(a4) in |
|00004800| 64 33 3b 20 72 65 73 74 | 6f 72 65 20 61 74 20 65 |d3; rest|ore at e|
|00004810| 6e 64 21 0d 09 73 70 20 | 29 2b 20 61 34 09 6c 6f |nd!..sp |)+ a4.lo|
|00004820| 6e 67 20 6d 6f 76 65 2c | 09 5c 20 70 75 74 20 76 |ng move,|.\ put v|
|00004830| 65 72 74 62 69 74 6f 66 | 66 20 69 6e 74 6f 20 61 |ertbitof|f into a|
|00004840| 34 20 0d 09 5c 20 77 61 | 69 74 20 66 6f 72 20 62 |4 ..\ wa|it for b|
|00004850| 6c 61 6e 6b 69 6e 67 0d | 09 62 65 67 69 6e 2c 0d |lanking.|.begin,.|
|00004860| 09 09 61 34 20 28 29 20 | 20 20 31 44 20 32 09 64 |..a4 () | 1D 2.d|
|00004870| 31 09 62 66 65 78 74 75 | 2c 09 5c 20 6f 66 66 73 |1.bfextu|,.\ offs|
|00004880| 65 74 20 69 73 20 32 39 | 3d 24 31 44 2c 20 62 69 |et is 29|=$1D, bi|
|00004890| 74 73 20 32 20 61 6e 64 | 20 31 20 28 62 69 74 20 |ts 2 and| 1 (bit |
|000048a0| 30 20 6e 6f 74 20 75 73 | 65 64 21 21 21 29 0d 09 |0 not us|ed!!!)..|
|000048b0| 09 64 31 09 33 20 20 09 | 62 79 74 65 20 73 75 62 |.d1.3 .|byte sub|
|000048c0| 71 2c 09 5c 20 33 20 65 | 71 75 61 6c 73 20 32 20 |q,.\ 3 e|quals 2 |
|000048d0| 62 69 74 73 20 73 65 74 | 20 61 74 20 6c 6f 77 20 |bits set| at low |
|000048e0| 65 6e 64 20 6f 66 20 64 | 31 0d 09 65 71 09 09 75 |end of d|1..eq..u|
|000048f0| 6e 74 69 6c 2c 09 09 09 | 5c 20 77 61 69 74 20 75 |ntil,...|\ wait u|
|00004900| 6e 74 69 6c 20 69 74 20 | 65 71 75 61 6c 73 20 33 |ntil it |equals 3|
|00004910| 0d 09 62 65 67 69 6e 2c | 0d 09 09 61 34 20 28 29 |..begin,|...a4 ()|
|00004920| 20 20 20 31 44 20 32 09 | 64 31 09 62 66 65 78 74 | 1D 2.|d1.bfext|
|00004930| 75 2c 09 5c 20 6f 66 66 | 73 65 74 20 69 73 20 32 |u,.\ off|set is 2|
|00004940| 39 3d 24 31 44 20 62 69 | 74 73 20 32 20 61 6e 64 |9=$1D bi|ts 2 and|
|00004950| 20 31 20 28 62 69 74 20 | 30 20 6e 6f 74 20 75 73 | 1 (bit |0 not us|
|00004960| 65 64 21 21 21 29 0d 09 | 65 71 09 09 75 6e 74 69 |ed!!!)..|eq..unti|
|00004970| 6c 2c 09 09 09 5c 20 77 | 61 69 74 20 75 6e 74 69 |l,...\ w|ait unti|
|00004980| 6c 20 62 6f 74 68 20 62 | 69 74 73 20 61 72 65 20 |l both b|its are |
|00004990| 7a 65 72 6f 0d 09 5c 20 | 62 6c 61 6e 6b 69 6e 67 |zero..\ |blanking|
|000049a0| 20 64 6f 6e 65 0d 09 73 | 70 20 29 2b 20 44 30 20 | done..s|p )+ D0 |
|000049b0| 6c 6f 6e 67 20 6d 6f 76 | 65 2c 09 09 5c 20 70 75 |long mov|e,..\ pu|
|000049c0| 74 20 63 6f 75 6e 74 20 | 74 6f 20 64 30 0d 09 73 |t count |to d0..s|
|000049d0| 70 20 29 2b 20 61 31 20 | 6c 6f 6e 67 20 6d 6f 76 |p )+ a1 |long mov|
|000049e0| 65 2c 09 09 5c 20 70 75 | 74 20 73 6f 75 72 63 65 |e,..\ pu|t source|
|000049f0| 20 69 6e 74 6f 20 61 31 | 0d 09 73 70 20 29 2b 20 | into a1|..sp )+ |
|00004a00| 41 30 09 6c 6f 6e 67 20 | 6d 6f 76 65 2c 09 5c 20 |A0.long |move,.\ |
|00004a10| 70 75 74 20 64 65 73 74 | 69 6e 61 74 69 6f 6e 20 |put dest|ination |
|00004a20| 28 63 6c 75 74 62 61 73 | 65 29 20 74 6f 20 61 30 |(clutbas|e) to a0|
|00004a30| 0d 09 62 65 67 69 6e 2c | 0d 09 09 61 31 20 29 2b |..begin,|...a1 )+|
|00004a40| 20 33 20 61 30 20 20 69 | 29 20 62 79 74 65 20 6d | 3 a0 i|) byte m|
|00004a50| 6f 76 65 2c 09 5c 20 69 | 6e 64 65 78 20 0d 09 09 |ove,.\ i|ndex ...|
|00004a60| 61 31 09 31 09 09 20 20 | 20 6c 6f 6e 67 09 41 44 |a1.1.. | long.AD|
|00004a70| 44 51 2c 09 5c 20 69 6e | 63 72 65 6d 65 6e 74 20 |DQ,.\ in|crement |
|00004a80| 61 6e 20 65 78 74 72 61 | 20 62 79 74 65 0d 09 09 |an extra| byte...|
|00004a90| 61 31 20 29 2b 20 37 20 | 61 30 20 20 69 29 20 62 |a1 )+ 7 |a0 i) b|
|00004aa0| 79 74 65 20 6d 6f 76 65 | 2c 09 5c 20 72 65 64 0d |yte move|,.\ red.|
|00004ab0| 09 09 61 31 09 31 09 09 | 20 20 20 6c 6f 6e 67 09 |..a1.1..| long.|
|00004ac0| 41 44 44 51 2c 09 5c 20 | 69 6e 63 72 65 6d 65 6e |ADDQ,.\ |incremen|
|00004ad0| 74 20 61 6e 20 65 78 74 | 72 61 20 62 79 74 65 0d |t an ext|ra byte.|
|00004ae0| 09 09 61 31 20 29 2b 20 | 37 20 61 30 20 20 69 29 |..a1 )+ |7 a0 i)|
|00004af0| 20 62 79 74 65 20 6d 6f | 76 65 2c 09 5c 20 67 72 | byte mo|ve,.\ gr|
|00004b00| 65 65 6e 0d 09 09 61 31 | 09 31 09 09 20 20 20 6c |een...a1|.1.. l|
|00004b10| 6f 6e 67 09 41 44 44 51 | 2c 09 5c 20 69 6e 63 72 |ong.ADDQ|,.\ incr|
|00004b20| 65 6d 65 6e 74 20 61 6e | 20 65 78 74 72 61 20 62 |ement an| extra b|
|00004b30| 79 74 65 0d 09 09 61 31 | 20 29 2b 20 37 20 61 30 |yte...a1| )+ 7 a0|
|00004b40| 20 20 69 29 20 62 79 74 | 65 20 6d 6f 76 65 2c 09 | i) byt|e move,.|
|00004b50| 5c 20 62 6c 75 65 0d 09 | 09 61 31 09 31 09 09 20 |\ blue..|.a1.1.. |
|00004b60| 20 20 6c 6f 6e 67 09 41 | 44 44 51 2c 09 5c 20 69 | long.A|DDQ,.\ i|
|00004b70| 6e 63 72 65 6d 65 6e 74 | 20 61 6e 20 65 78 74 72 |ncrement| an extr|
|00004b80| 61 20 62 79 74 65 0d 09 | 09 64 30 20 31 20 6c 6f |a byte..|.d0 1 lo|
|00004b90| 6e 67 20 73 75 62 71 2c | 0d 09 65 71 20 75 6e 74 |ng subq,|..eq unt|
|00004ba0| 69 6c 2c 20 20 20 20 20 | 20 20 0d 09 64 33 09 61 |il, | ..d3.a|
|00004bb0| 34 09 6c 6f 6e 67 20 6d | 6f 76 65 2c 09 09 5c 20 |4.long m|ove,..\ |
|00004bc0| 52 65 73 74 6f 72 65 20 | 55 50 0d 09 30 20 20 44 |Restore |UP..0 D|
|00004bd0| 30 20 4d 4f 56 45 51 2c | 20 41 30 35 44 20 77 2c |0 MOVEQ,| A05D w,|
|00004be0| 09 5c 20 53 77 61 70 4d | 4d 55 4d 6f 64 65 20 62 |.\ SwapM|MUMode b|
|00004bf0| 61 63 6b 0d 09 6e 65 78 | 74 0d 65 6e 64 2d 63 6f |ack..nex|t.end-co|
|00004c00| 64 65 0d 0d 48 49 53 54 | 4f 52 59 3a 0d 38 2f 32 |de..HIST|ORY:.8/2|
|00004c10| 34 2f 39 32 20 4f 72 69 | 67 69 6e 61 6c 20 73 65 |4/92 Ori|ginal se|
|00004c20| 74 63 61 72 64 62 61 73 | 65 20 61 6e 64 20 6d 61 |tcardbas|e and ma|
|00004c30| 63 6c 74 73 65 74 20 70 | 72 6f 76 69 64 65 64 20 |cltset p|rovided |
|00004c40| 62 79 20 52 61 79 6e 61 | 6c 64 20 43 6f 6d 74 6f |by Rayna|ld Comto|
|00004c50| 69 73 0d 28 72 61 63 6f | 40 77 6a 68 31 32 2e 68 |is.(raco|@wjh12.h|
|00004c60| 61 72 76 61 72 64 2e 65 | 64 75 29 20 74 6f 20 44 |arvard.e|du) to D|
|00004c70| 65 6e 69 73 20 50 65 6c | 6c 69 2e 0d 0d 31 30 2f |enis Pel|li...10/|
|00004c80| 32 2f 39 32 20 42 69 6c | 6c 20 48 61 61 6b 65 20 |2/92 Bil|l Haake |
|00004c90| 61 64 64 65 64 20 63 6f | 64 65 20 66 6f 72 20 74 |added co|de for t|
|00004ca0| 68 65 20 52 61 73 74 65 | 72 4f 70 73 20 50 72 6f |he Raste|rOps Pro|
|00004cb0| 43 6f 6c 6f 72 20 33 32 | 2c 20 77 68 69 63 68 20 |Color 32|, which |
|00004cc0| 68 61 73 20 39 2d 62 69 | 74 0d 44 41 43 73 20 61 |has 9-bi|t.DACs a|
|00004cd0| 6e 64 20 39 2d 62 69 74 | 20 65 6e 74 72 69 65 73 |nd 9-bit| entries|
|00004ce0| 20 69 6e 20 74 68 65 20 | 6c 6f 6f 6b 75 70 20 74 | in the |lookup t|
|00004cf0| 61 62 6c 65 2e 0d 0d 31 | 30 2f 31 2f 39 32 20 50 |able...1|0/1/92 P|
|00004d00| 65 74 65 72 20 4c 65 6e | 6e 69 65 20 61 64 64 65 |eter Len|nie adde|
|00004d10| 64 20 63 6f 64 65 20 66 | 6f 72 20 51 75 61 64 72 |d code f|or Quadr|
|00004d20| 61 20 69 6e 74 65 72 6e | 61 6c 20 76 69 64 65 6f |a intern|al video|
|00004d30| 2e 20 20 4e 6f 20 70 72 | 6f 76 69 73 69 6f 6e 20 |. No pr|ovision |
|00004d40| 66 6f 72 0d 63 68 61 6e | 67 69 6e 67 20 74 68 65 |for.chan|ging the|
|00004d50| 20 73 74 61 72 74 20 70 | 6f 73 69 74 69 6f 6e 20 | start p|osition |
|00004d60| 69 6e 20 74 68 65 20 74 | 61 62 6c 65 2c 20 28 49 |in the t|able, (I|
|00004d70| 20 63 6f 75 6c 64 6e 27 | 74 20 66 69 6e 64 20 61 | couldn'|t find a|
|00004d80| 6e 79 20 72 65 6c 65 76 | 61 6e 74 0d 64 69 73 61 |ny relev|ant.disa|
|00004d90| 73 73 65 6d 62 6c 79 29 | 20 73 6f 20 27 73 74 61 |ssembly)| so 'sta|
|00004da0| 72 74 27 20 69 73 20 69 | 67 6e 6f 72 65 64 2c 20 |rt' is i|gnored, |
|00004db0| 61 6e 64 20 79 6f 75 20 | 73 68 6f 75 6c 64 20 77 |and you |should w|
|00004dc0| 72 69 74 65 20 74 68 65 | 20 77 68 6f 6c 65 20 74 |rite the| whole t|
|00004dd0| 61 62 6c 65 2e 0d 09 0d | 39 2f 33 30 2f 39 32 20 |able....|9/30/92 |
|00004de0| 42 69 6c 6c 20 48 61 61 | 6b 65 20 26 20 50 65 74 |Bill Haa|ke & Pet|
|00004df0| 65 72 20 4c 65 6e 6e 69 | 65 20 6d 6f 64 69 66 69 |er Lenni|e modifi|
|00004e00| 65 64 20 74 68 65 20 63 | 6f 64 65 20 66 6f 72 20 |ed the c|ode for |
|00004e10| 74 68 65 20 38 78 32 34 | 20 63 61 72 64 0d 61 6e |the 8x24| card.an|
|00004e20| 64 20 74 68 65 20 38 78 | 32 34 47 43 20 74 6f 20 |d the 8x|24GC to |
|00004e30| 6d 61 6b 65 20 69 74 20 | 61 29 20 77 6f 72 6b 20 |make it |a) work |
|00004e40| 70 72 6f 70 65 72 6c 79 | 20 69 6e 20 33 32 2d 62 |properly| in 32-b|
|00004e50| 69 74 20 6d 6f 64 65 2e | 20 62 29 20 74 6f 20 66 |it mode.| b) to f|
|00004e60| 69 78 20 61 20 62 75 67 | 0d 28 66 65 61 74 75 72 |ix a bug|.(featur|
|00004e70| 65 3f 29 20 6f 66 20 74 | 68 65 20 6f 72 69 67 69 |e?) of t|he origi|
|00004e80| 6e 61 6c 20 64 72 69 76 | 65 72 73 20 74 68 61 74 |nal driv|ers that|
|00004e90| 20 70 72 65 76 65 6e 74 | 65 64 20 74 68 65 20 63 | prevent|ed the c|
|00004ea0| 61 72 64 73 20 72 75 6e | 6e 69 6e 67 20 6f 6e 20 |ards run|ning on |
|00004eb0| 61 20 51 75 61 64 72 61 | 2e 0d 54 68 65 20 64 72 |a Quadra|..The dr|
|00004ec0| 69 76 65 72 73 20 65 78 | 70 6c 6f 69 74 20 27 62 |ivers ex|ploit 'b|
|00004ed0| 79 74 65 2d 73 6d 65 61 | 72 69 6e 67 27 20 6f 6e |yte-smea|ring' on|
|00004ee0| 20 74 68 65 20 36 38 30 | 32 30 20 61 6e 64 20 36 | the 680|20 and 6|
|00004ef0| 38 30 33 30 20 28 54 65 | 63 68 20 4e 6f 74 65 20 |8030 (Te|ch Note |
|00004f00| 32 38 32 29 2e 20 54 68 | 69 73 0d 6d 65 61 6e 73 |282). Th|is.means|
|00004f10| 20 74 68 61 74 20 6f 6e | 65 20 63 61 6e 20 6d 6f | that on|e can mo|
|00004f20| 76 65 20 61 20 62 79 74 | 65 20 74 6f 20 74 68 65 |ve a byt|e to the|
|00004f30| 20 6c 6f 77 65 73 74 20 | 62 79 74 65 20 61 64 64 | lowest |byte add|
|00004f40| 72 65 73 73 20 6f 66 20 | 74 68 65 20 64 61 74 61 |ress of |the data|
|00004f50| 20 72 65 67 69 73 74 65 | 72 0d 6f 6e 20 74 68 65 | registe|r.on the|
|00004f60| 20 63 61 72 64 2c 20 77 | 68 65 6e 20 6f 6e 65 20 | card, w|hen one |
|00004f70| 61 63 74 75 61 6c 6c 79 | 20 77 61 6e 74 73 20 74 |actually| wants t|
|00004f80| 6f 20 70 75 74 20 69 74 | 20 61 74 20 61 64 64 72 |o put it| at addr|
|00004f90| 65 73 73 2b 33 20 28 21 | 21 29 2e 20 54 68 65 20 |ess+3 (!|!). The |
|00004fa0| 66 75 6e 63 74 69 6f 6e | 73 0d 77 6f 72 6b 20 66 |function|s.work f|
|00004fb0| 6f 72 20 61 6c 6c 20 74 | 68 65 20 63 61 72 64 73 |or all t|he cards|
|00004fc0| 20 28 65 78 63 65 70 74 | 20 74 6f 62 79 2c 20 77 | (except| toby, w|
|00004fd0| 68 69 63 68 20 68 61 73 | 6e 27 74 20 62 65 65 6e |hich has|n't been|
|00004fe0| 20 74 65 73 74 65 64 29 | 20 61 6e 64 20 6f 6e 20 | tested)| and on |
|00004ff0| 69 6e 74 65 72 6e 61 6c | 0d 76 69 64 65 6f 20 69 |internal|.video i|
|00005000| 6e 20 62 6f 74 68 20 32 | 34 20 61 6e 64 20 33 32 |n both 2|4 and 32|
|00005010| 20 62 69 74 20 6d 6f 64 | 65 20 6f 6e 20 51 75 61 | bit mod|e on Qua|
|00005020| 64 72 61 20 37 30 30 2f | 39 35 30 2c 20 49 49 66 |dra 700/|950, IIf|
|00005030| 78 20 6f 72 20 63 69 20 | 72 75 6e 6e 69 6e 67 20 |x or ci |running |
|00005040| 73 79 73 74 65 6d 0d 37 | 2e 30 2e 31 2e 0d 09 0d |system.7|.0.1....|
|00005050| 39 2f 32 38 2f 39 32 20 | 50 65 74 65 72 20 4c 65 |9/28/92 |Peter Le|
|00005060| 6e 6e 69 65 20 61 64 64 | 65 64 20 74 68 65 20 66 |nnie add|ed the f|
|00005070| 75 6e 63 74 69 6f 6e 20 | 66 69 6e 64 63 61 72 64 |unction |findcard|
|00005080| 2e 0d 0d 31 31 2f 32 33 | 2f 39 32 20 44 65 6e 69 |...11/23|/92 Deni|
|00005090| 73 20 50 65 6c 6c 69 20 | 28 64 67 70 29 20 65 6c |s Pelli |(dgp) el|
|000050a0| 69 6d 69 6e 61 74 65 64 | 20 61 6c 6c 20 67 6c 6f |iminated| all glo|
|000050b0| 62 61 6c 73 20 62 65 63 | 61 75 73 65 20 74 68 65 |bals bec|ause the|
|000050c0| 79 20 69 6d 70 6c 69 63 | 69 74 6c 79 0d 61 73 73 |y implic|itly.ass|
|000050d0| 75 6d 65 64 20 74 68 61 | 74 20 74 68 65 72 65 20 |umed tha|t there |
|000050e0| 69 73 20 6f 6e 6c 79 20 | 6f 6e 65 20 76 69 64 65 |is only |one vide|
|000050f0| 6f 20 64 65 76 69 63 65 | 2e 20 41 6c 6c 20 72 6f |o device|. All ro|
|00005100| 75 74 69 6e 65 73 20 6e | 6f 77 20 61 63 63 65 70 |utines n|ow accep|
|00005110| 74 20 61 20 47 44 48 61 | 6e 64 6c 65 0d 73 70 65 |t a GDHa|ndle.spe|
|00005120| 63 69 66 79 69 6e 67 20 | 77 68 69 63 68 20 76 69 |cifying |which vi|
|00005130| 64 65 6f 20 64 65 76 69 | 63 65 2e 20 53 69 6d 70 |deo devi|ce. Simp|
|00005140| 6c 69 66 69 65 64 20 74 | 68 65 20 6c 6f 67 69 63 |lified t|he logic|
|00005150| 20 6f 66 20 47 65 74 43 | 61 72 64 42 61 73 65 28 | of GetC|ardBase(|
|00005160| 29 2c 20 6d 69 6e 69 6d | 69 7a 69 6e 67 0d 74 68 |), minim|izing.th|
|00005170| 65 20 64 65 70 65 6e 64 | 65 6e 63 65 20 6f 6e 20 |e depend|ence on |
|00005180| 63 61 72 64 20 74 79 70 | 65 2e 0d 0d 31 31 2f 32 |card typ|e...11/2|
|00005190| 35 2f 39 32 20 64 67 70 | 20 57 68 65 6e 20 55 53 |5/92 dgp| When US|
|000051a0| 45 5f 4d 53 42 20 69 73 | 20 74 72 75 65 2c 20 61 |E_MSB is| true, a|
|000051b0| 6c 6c 20 74 68 65 20 72 | 6f 75 74 69 6e 65 73 20 |ll the r|outines |
|000051c0| 6e 6f 77 20 75 73 65 20 | 74 68 65 20 6d 6f 73 74 |now use |the most|
|000051d0| 20 73 69 67 6e 69 66 69 | 63 61 6e 74 0d 62 69 74 | signifi|cant.bit|
|000051e0| 73 20 6f 66 20 74 68 65 | 20 31 36 2d 62 69 74 20 |s of the| 16-bit |
|000051f0| 65 6c 65 6d 65 6e 74 73 | 20 6f 66 20 74 68 65 20 |elements| of the |
|00005200| 75 73 65 72 2d 73 75 70 | 70 6c 69 65 64 20 63 6f |user-sup|plied co|
|00005210| 6c 6f 72 20 74 61 62 6c | 65 73 2e 20 57 68 65 6e |lor tabl|es. When|
|00005220| 20 69 74 20 69 73 20 66 | 61 6c 73 65 0d 74 68 65 | it is f|alse.the|
|00005230| 20 6c 65 61 73 74 20 73 | 69 67 6e 69 66 69 63 61 | least s|ignifica|
|00005240| 6e 74 20 62 69 74 73 20 | 61 72 65 20 75 73 65 64 |nt bits |are used|
|00005250| 2e 20 54 68 69 73 20 69 | 73 20 6d 6f 73 74 6c 79 |. This i|s mostly|
|00005260| 20 69 6d 70 6c 65 6d 65 | 6e 74 65 64 20 62 79 20 | impleme|nted by |
|00005270| 6f 66 66 73 65 74 69 6e | 67 20 74 68 65 0d 74 61 |offsetin|g the.ta|
|00005280| 62 6c 65 20 70 6f 69 6e | 74 65 72 73 20 62 79 20 |ble poin|ters by |
|00005290| 6f 6e 65 20 62 79 74 65 | 20 61 6e 64 20 6f 6e 6c |one byte| and onl|
|000052a0| 79 20 72 65 61 64 69 6e | 67 20 74 68 65 20 64 65 |y readin|g the de|
|000052b0| 73 69 72 65 64 20 62 79 | 74 65 2e 20 a5 47 65 6e |sired by|te. .Gen|
|000052c0| 65 72 61 6c 69 7a 65 64 | 0d 6d 61 63 6c 74 73 65 |eralized|.macltse|
|000052d0| 74 28 29 20 74 6f 20 77 | 6f 72 6b 20 77 69 74 68 |t() to w|ork with|
|000052e0| 20 74 61 62 6c 65 73 20 | 74 68 61 74 20 68 61 76 | tables |that hav|
|000052f0| 65 20 61 6e 20 61 72 62 | 69 74 72 61 72 79 20 65 |e an arb|itrary e|
|00005300| 6c 65 6d 65 6e 74 20 73 | 70 61 63 69 6e 67 2e 20 |lement s|pacing. |
|00005310| 54 68 69 73 0d 61 6c 6c | 6f 77 73 20 69 74 20 74 |This.all|ows it t|
|00005320| 6f 20 77 6f 72 6b 20 77 | 69 74 68 20 62 6f 74 68 |o work w|ith both|
|00005330| 20 77 69 74 68 20 52 61 | 79 6e 61 6c 64 27 73 20 | with Ra|ynald's |
|00005340| 63 6f 6e 76 65 6e 74 69 | 6f 6e 20 6f 66 20 74 68 |conventi|on of th|
|00005350| 72 65 65 20 61 72 72 61 | 79 73 20 6f 66 20 73 68 |ree arra|ys of sh|
|00005360| 6f 72 74 73 2c 0d 61 6e | 64 20 74 68 65 20 41 70 |orts,.an|d the Ap|
|00005370| 70 6c 65 20 63 6f 6e 76 | 65 6e 74 69 6f 6e 20 6f |ple conv|ention o|
|00005380| 66 20 61 20 43 6f 6c 6f | 72 53 70 65 63 20 61 72 |f a Colo|rSpec ar|
|00005390| 72 61 79 2c 20 65 61 63 | 68 20 65 6c 65 6d 65 6e |ray, eac|h elemen|
|000053a0| 74 20 6f 66 20 77 68 69 | 63 68 20 63 6f 6e 73 69 |t of whi|ch consi|
|000053b0| 73 74 73 20 6f 66 0d 72 | 65 64 2c 20 67 72 65 65 |sts of.r|ed, gree|
|000053c0| 6e 2c 20 62 6c 75 65 2c | 20 61 6e 64 20 76 61 6c |n, blue,| and val|
|000053d0| 75 65 20 28 77 68 69 63 | 68 20 69 73 20 6e 6f 74 |ue (whic|h is not|
|000053e0| 20 75 73 65 64 29 2e 20 | a5 41 64 64 65 64 20 61 | used). |.Added a|
|000053f0| 6c 69 61 73 20 22 54 6f | 62 79 20 66 72 61 6d 65 |lias "To|by frame|
|00005400| 20 62 75 66 66 65 72 0d | 63 61 72 64 22 20 66 6f | buffer.|card" fo|
|00005410| 72 20 74 6f 62 79 63 61 | 72 64 2e 0d 0d 31 31 2f |r tobyca|rd...11/|
|00005420| 32 37 2f 39 32 20 64 67 | 70 20 42 72 6f 6b 65 20 |27/92 dg|p Broke |
|00005430| 6f 75 74 20 74 68 65 20 | 63 6f 64 65 20 66 6f 72 |out the |code for|
|00005440| 20 65 61 63 68 20 63 61 | 72 64 20 69 6e 74 6f 20 | each ca|rd into |
|00005450| 73 65 70 61 72 61 74 65 | 20 73 75 62 72 6f 75 74 |separate| subrout|
|00005460| 69 6e 65 73 2e 20 54 68 | 69 73 0d 61 6c 6c 6f 77 |ines. Th|is.allow|
|00005470| 73 20 6f 70 74 69 6d 61 | 6c 20 72 65 67 69 73 74 |s optima|l regist|
|00005480| 65 72 20 61 73 73 69 67 | 6e 6d 65 6e 74 20 66 6f |er assig|nment fo|
|00005490| 72 20 65 61 63 68 20 72 | 6f 75 74 69 6e 65 2c 20 |r each r|outine, |
|000054a0| 61 6e 64 20 6d 61 6b 65 | 73 20 69 74 20 6d 75 63 |and make|s it muc|
|000054b0| 68 20 65 61 73 69 65 72 | 20 74 6f 20 72 65 61 64 |h easier| to read|
|000054c0| 0d 74 68 65 20 54 48 49 | 4e 4b 20 43 20 64 69 73 |.the THI|NK C dis|
|000054d0| 61 73 73 65 6d 62 6c 65 | 72 20 6f 75 74 70 75 74 |assemble|r output|
|000054e0| 2e 20 54 68 65 20 72 75 | 6e 74 69 6d 65 20 6f 76 |. The ru|ntime ov|
|000054f0| 65 72 68 65 61 64 20 6f | 66 20 6c 6f 61 64 69 6e |erhead o|f loadin|
|00005500| 67 20 61 6e 64 20 75 6e | 6c 6f 61 64 69 6e 67 0d |g and un|loading.|
|00005510| 74 68 65 20 73 74 61 63 | 6b 20 69 73 20 6e 65 67 |the stac|k is neg|
|00005520| 6c 69 67 69 62 6c 65 2c | 20 61 6e 64 20 63 6f 75 |ligible,| and cou|
|00005530| 6c 64 20 62 65 20 65 6c | 69 6d 69 6e 61 74 65 64 |ld be el|iminated|
|00005540| 20 65 6e 74 69 72 65 6c | 79 20 62 79 20 70 75 74 | entirel|y by put|
|00005550| 74 69 6e 67 20 61 6c 6c | 20 74 68 65 0d 70 61 72 |ting all| the.par|
|00005560| 61 6d 65 74 65 72 73 20 | 69 6e 20 61 20 73 74 72 |ameters |in a str|
|00005570| 75 63 74 75 72 65 20 61 | 6e 64 20 70 61 73 73 69 |ucture a|nd passi|
|00005580| 6e 67 20 61 20 70 6f 69 | 6e 74 65 72 20 74 6f 20 |ng a poi|nter to |
|00005590| 69 74 2e 20 a5 41 64 64 | 65 64 20 61 20 66 6c 61 |it. .Add|ed a fla|
|000055a0| 67 2c 0d 73 75 73 70 65 | 6e 64 49 6e 74 65 72 72 |g,.suspe|ndInterr|
|000055b0| 75 70 74 73 2c 20 74 6f | 20 6d 61 6b 65 20 69 6e |upts, to| make in|
|000055c0| 74 65 72 72 75 70 74 20 | 73 75 73 70 65 6e 73 69 |terrupt |suspensi|
|000055d0| 6f 6e 20 6f 70 74 69 6f | 6e 61 6c 20 73 69 6e 63 |on optio|nal sinc|
|000055e0| 65 20 69 74 20 6d 61 79 | 20 62 65 0d 75 6e 64 65 |e it may| be.unde|
|000055f0| 73 69 72 61 62 6c 65 20 | 69 6e 20 73 6f 6d 65 20 |sirable |in some |
|00005600| 61 70 70 6c 69 63 61 74 | 69 6f 6e 73 2e 20 28 42 |applicat|ions. (B|
|00005610| 6c 6f 63 6b 69 6e 67 20 | 69 6e 74 65 72 72 75 70 |locking |interrup|
|00005620| 74 73 20 66 6f 72 20 31 | 20 6d 73 20 63 6f 75 6c |ts for 1| ms coul|
|00005630| 64 20 63 61 75 73 65 20 | 79 6f 75 0d 74 6f 20 6d |d cause |you.to m|
|00005640| 69 73 73 20 74 68 65 20 | 69 6e 74 65 72 72 75 70 |iss the |interrup|
|00005650| 74 20 66 72 6f 6d 20 61 | 20 76 69 64 65 6f 20 63 |t from a| video c|
|00005660| 61 72 64 2c 20 65 73 70 | 65 63 69 61 6c 6c 79 20 |ard, esp|ecially |
|00005670| 69 66 20 79 6f 75 20 61 | 72 65 20 74 72 79 69 6e |if you a|re tryin|
|00005680| 67 20 74 6f 20 6b 65 65 | 70 0d 74 72 61 63 6b 20 |g to kee|p.track |
|00005690| 6f 66 20 69 6e 74 65 72 | 72 75 70 74 73 20 6f 6e |of inter|rupts on|
|000056a0| 20 73 65 76 65 72 61 6c | 20 76 69 64 65 6f 20 63 | several| video c|
|000056b0| 61 72 64 73 20 61 74 20 | 6f 6e 63 65 2e 29 0d 0d |ards at |once.)..|
|000056c0| 31 31 2f 33 30 2f 39 32 | 20 64 67 70 20 57 72 6f |11/30/92| dgp Wro|
|000056d0| 74 65 20 54 65 73 74 43 | 6c 75 74 73 2c 20 77 68 |te TestC|luts, wh|
|000056e0| 69 63 68 20 72 65 61 64 | 73 20 62 61 63 6b 20 74 |ich read|s back t|
|000056f0| 68 65 20 63 6c 75 74 20 | 61 6e 64 20 63 68 65 63 |he clut |and chec|
|00005700| 6b 73 20 61 6c 6c 0d 76 | 61 6c 75 65 73 2c 20 61 |ks all.v|alues, a|
|00005710| 6e 64 20 75 73 65 64 20 | 69 74 20 74 6f 20 74 65 |nd used |it to te|
|00005720| 73 74 20 53 65 74 45 6e | 74 72 69 65 73 51 75 69 |st SetEn|triesQui|
|00005730| 63 6b 6c 79 28 29 20 6f | 6e 20 51 75 61 64 72 61 |ckly() o|n Quadra|
|00005740| 20 39 35 30 20 69 6e 74 | 65 72 6e 61 6c 20 76 69 | 950 int|ernal vi|
|00005750| 64 65 6f 2c 0d 4d 61 63 | 20 49 49 63 69 20 69 6e |deo,.Mac| IIci in|
|00005760| 74 65 72 6e 61 6c 20 76 | 69 64 65 6f 2c 20 68 69 |ternal v|ideo, hi|
|00005770| 72 65 73 63 61 72 64 2c | 20 22 54 6f 62 79 20 66 |rescard,| "Toby f|
|00005780| 72 61 6d 65 20 62 75 66 | 66 65 72 20 63 61 72 64 |rame buf|fer card|
|00005790| 22 2c 20 61 6e 64 20 38 | a5 32 34 20 63 61 72 64 |", and 8|.24 card|
|000057a0| 20 61 74 0d 61 6c 6c 20 | 64 65 70 74 68 73 2c 20 | at.all |depths, |
|000057b0| 66 6f 72 20 62 6f 74 68 | 20 32 34 2d 20 61 6e 64 |for both| 24- and|
|000057c0| 20 33 32 2d 62 69 74 20 | 61 64 64 72 65 73 73 69 | 32-bit |addressi|
|000057d0| 6e 67 2e 20 54 6f 62 79 | 20 63 61 72 64 20 77 61 |ng. Toby| card wa|
|000057e0| 73 20 74 65 73 74 65 64 | 20 6f 6e 20 36 38 30 32 |s tested| on 6802|
|000057f0| 30 2c 0d 36 38 30 33 30 | 2c 20 61 6e 64 20 36 38 |0,.68030|, and 68|
|00005800| 30 34 30 20 70 72 6f 63 | 65 73 73 6f 72 73 2e 20 |040 proc|essors. |
|00005810| a5 57 72 6f 74 65 20 64 | 6f 63 75 6d 65 6e 74 61 |.Wrote d|ocumenta|
|00005820| 74 69 6f 6e 2e 20 a5 52 | 65 70 6c 61 63 65 64 20 |tion. .R|eplaced |
|00005830| 63 6f 6d 70 69 6c 65 2d | 74 69 6d 65 20 63 6f 6e |compile-|time con|
|00005840| 73 74 61 6e 74 73 0d 55 | 53 45 5f 4d 53 42 20 61 |stants.U|SE_MSB a|
|00005850| 6e 64 20 50 52 4f 5f 38 | 42 49 54 53 20 62 79 20 |nd PRO_8|BITS by |
|00005860| 72 75 6e 74 69 6d 65 20 | 66 6c 61 67 73 20 70 61 |runtime |flags pa|
|00005870| 73 73 65 64 20 61 73 20 | 61 72 67 75 6d 65 6e 74 |ssed as |argument|
|00005880| 73 2e 20 a5 41 64 64 65 | 64 20 57 61 69 74 46 6f |s. .Adde|d WaitFo|
|00005890| 72 4e 65 78 74 42 6c 61 | 6e 6b 69 6e 67 28 29 0d |rNextBla|nking().|
|000058a0| 62 61 73 65 64 20 6f 6e | 20 63 6f 64 65 20 66 72 |based on| code fr|
|000058b0| 6f 6d 20 56 69 64 65 6f | 54 46 42 2e 63 2e 0d 0d |om Video|TFB.c...|
|000058c0| 31 32 2f 33 2f 39 32 20 | 64 67 70 20 49 6e 63 6f |12/3/92 |dgp Inco|
|000058d0| 72 70 6f 72 61 74 65 64 | 20 50 65 74 65 72 20 4c |rporated| Peter L|
|000058e0| 65 6e 6e 69 65 27 73 20 | 63 6f 72 72 65 63 74 69 |ennie's |correcti|
|000058f0| 6f 6e 73 20 61 6e 64 20 | 61 64 64 69 74 69 6f 6e |ons and |addition|
|00005900| 73 20 74 6f 20 74 68 65 | 20 63 6f 6d 6d 65 6e 74 |s to the| comment|
|00005910| 73 20 61 62 6f 76 65 2e | 0d 0d 31 32 2f 38 2f 39 |s above.|..12/8/9|
|00005920| 32 20 64 67 70 20 41 64 | 64 65 64 20 6d 69 73 73 |2 dgp Ad|ded miss|
|00005930| 69 6e 67 20 22 63 61 73 | 65 22 20 74 6f 20 73 77 |ing "cas|e" to sw|
|00005940| 69 74 63 68 20 69 6e 20 | 57 61 69 74 46 6f 72 4e |itch in |WaitForN|
|00005950| 65 78 74 42 6c 61 6e 6b | 69 6e 67 2e 0d 0d 31 32 |extBlank|ing...12|
|00005960| 2f 31 33 2f 39 32 20 64 | 67 70 20 43 68 61 6e 67 |/13/92 d|gp Chang|
|00005970| 65 64 20 65 72 72 6f 6e | 65 6f 75 73 20 22 26 64 |ed erron|eous "&d|
|00005980| 22 20 74 6f 20 22 25 64 | 22 20 69 6e 20 61 20 70 |" to "%d|" in a p|
|00005990| 72 69 6e 74 66 2e 20 41 | 64 64 65 64 20 73 6f 6d |rintf. A|dded som|
|000059a0| 65 20 63 6f 6d 6d 65 6e | 74 73 20 74 6f 0d 74 68 |e commen|ts to.th|
|000059b0| 65 20 64 6f 63 75 6d 65 | 6e 74 61 74 69 6f 6e 20 |e docume|ntation |
|000059c0| 61 62 6f 76 65 2e 0d 09 | 09 09 0d 31 32 2f 31 35 |above...|...12/15|
|000059d0| 2f 39 32 20 64 67 70 20 | 4e 6f 77 20 67 65 74 20 |/92 dgp |Now get |
|000059e0| 6d 6f 64 65 20 66 72 6f | 6d 20 64 65 76 69 63 65 |mode fro|m device|
|000059f0| 20 72 65 63 6f 72 64 20 | 61 6e 64 20 6c 65 61 76 | record |and leav|
|00005a00| 65 20 69 74 20 69 6e 20 | 73 74 61 6e 64 61 72 64 |e it in |standard|
|00005a10| 20 66 6f 72 6d 2c 20 0d | 69 2e 65 2e 20 77 69 74 | form, .|i.e. wit|
|00005a20| 68 20 74 68 65 20 30 78 | 38 30 20 62 69 74 20 73 |h the 0x|80 bit s|
|00005a30| 65 74 2c 20 61 6e 64 20 | 6f 6e 6c 79 20 73 74 72 |et, and |only str|
|00005a40| 69 70 20 6f 66 66 20 74 | 68 61 74 20 62 69 74 20 |ip off t|hat bit |
|00005a50| 77 68 65 6e 20 61 63 74 | 75 61 6c 6c 79 20 6e 65 |when act|ually ne|
|00005a60| 63 65 73 73 61 72 79 2c | 0d 65 2e 67 2e 20 69 6e |cessary,|.e.g. in|
|00005a70| 20 4c 6f 61 64 43 6c 75 | 74 4d 61 63 49 49 63 69 | LoadClu|tMacIIci|
|00005a80| 2e 20 0d 0d 31 32 2f 33 | 30 2f 39 32 20 64 67 70 |. ..12/3|0/92 dgp|
|00005a90| 20 4d 61 6b 65 20 73 75 | 72 65 20 72 6f 75 74 69 | Make su|re routi|
|00005aa0| 6e 65 73 20 72 65 74 75 | 72 6e 20 7a 65 72 6f 20 |nes retu|rn zero |
|00005ab0| 77 68 65 6e 20 74 68 65 | 72 65 27 73 20 6e 6f 20 |when the|re's no |
|00005ac0| 65 72 72 6f 72 2e 0d 0d | 32 2f 31 35 2f 39 33 09 |error...|2/15/93.|
|00005ad0| 64 67 70 20 52 65 77 72 | 6f 74 65 20 6e 6f 6e 77 |dgp Rewr|ote nonw|
|00005ae0| 6f 72 6b 69 6e 67 20 4c | 6f 61 64 43 6c 75 74 54 |orking L|oadClutT|
|00005af0| 6f 62 79 20 69 6e 20 43 | 2c 20 61 6e 64 20 6d 61 |oby in C|, and ma|
|00005b00| 64 65 20 69 74 20 77 6f | 72 6b 2e 20 52 65 77 72 |de it wo|rk. Rewr|
|00005b10| 6f 74 65 0d 6e 6f 6e 77 | 6f 72 6b 69 6e 67 20 4c |ote.nonw|orking L|
|00005b20| 6f 61 64 43 6c 75 74 78 | 38 32 34 20 69 6e 20 43 |oadClutx|824 in C|
|00005b30| 2c 20 61 6e 64 20 6d 61 | 64 65 20 69 74 20 77 6f |, and ma|de it wo|
|00005b40| 72 6b 2e 20 46 69 78 65 | 64 20 73 69 78 74 65 65 |rk. Fixe|d sixtee|
|00005b50| 6e 42 69 74 4d 6f 64 65 | 20 69 6e 0d 4c 6f 61 64 |nBitMode| in.Load|
|00005b60| 43 6c 75 74 51 75 61 64 | 72 61 2e 20 55 73 65 20 |ClutQuad|ra. Use |
|00005b70| 6e 65 77 20 53 77 61 70 | 50 72 69 6f 72 69 74 79 |new Swap|Priority|
|00005b80| 20 69 6e 73 74 65 61 64 | 20 6f 66 20 47 65 74 2f | instead| of Get/|
|00005b90| 53 65 74 50 72 69 6f 72 | 69 74 79 2e 0d 0d 32 2f |SetPrior|ity...2/|
|00005ba0| 32 30 2f 39 33 09 64 67 | 70 09 54 72 61 6e 73 6c |20/93.dg|p.Transl|
|00005bb0| 61 74 65 64 20 4c 6f 61 | 64 43 6c 75 74 47 43 78 |ated Loa|dClutGCx|
|00005bc0| 38 32 34 20 74 6f 20 43 | 2e 20 28 49 74 20 77 61 |824 to C|. (It wa|
|00005bd0| 73 20 69 67 6e 6f 72 69 | 6e 67 20 74 68 65 20 73 |s ignori|ng the s|
|00005be0| 74 61 72 74 20 76 61 6c | 75 65 2e 29 0d 0d 33 2f |tart val|ue.)..3/|
|00005bf0| 34 2f 39 33 09 64 67 70 | 09 41 64 64 65 64 20 6d |4/93.dgp|.Added m|
|00005c00| 61 63 49 49 73 69 20 74 | 6f 20 6c 69 73 74 20 6f |acIIsi t|o list o|
|00005c10| 66 20 73 75 70 70 6f 72 | 74 65 64 20 63 61 72 64 |f suppor|ted card|
|00005c20| 73 2c 20 73 69 6e 63 65 | 20 69 74 20 75 73 65 73 |s, since| it uses|
|00005c30| 20 74 68 65 20 73 61 6d | 65 0d 64 72 69 76 65 72 | the sam|e.driver|
|00005c40| 20 61 73 20 74 68 65 20 | 4d 61 63 20 49 49 63 69 | as the |Mac IIci|
|00005c50| 2e 20 43 68 61 6e 67 65 | 64 20 64 65 66 69 6e 69 |. Change|d defini|
|00005c60| 74 69 6f 6e 73 20 6f 66 | 20 73 74 72 69 6e 67 20 |tions of| string |
|00005c70| 74 79 70 65 73 20 73 6c | 69 67 68 74 6c 79 20 74 |types sl|ightly t|
|00005c80| 6f 20 61 6c 6c 6f 77 0d | 63 6f 6d 70 69 6c 61 74 |o allow.|compilat|
|00005c90| 69 6f 6e 20 6f 66 20 74 | 68 69 73 20 66 69 6c 65 |ion of t|his file|
|00005ca0| 20 61 73 20 61 20 63 6f | 64 65 20 72 65 73 6f 75 | as a co|de resou|
|00005cb0| 72 63 65 2e 20 48 6f 77 | 65 76 65 72 2c 20 74 68 |rce. How|ever, th|
|00005cc0| 65 20 61 73 73 65 6d 62 | 6c 79 20 63 6f 64 65 0d |e assemb|ly code.|
|00005cd0| 75 73 65 73 20 6d 6f 72 | 65 20 72 65 67 69 73 74 |uses mor|e regist|
|00005ce0| 65 72 73 20 74 68 61 6e | 20 61 72 65 20 61 76 61 |ers than| are ava|
|00005cf0| 69 6c 61 62 6c 65 20 74 | 6f 20 61 20 63 6f 64 65 |ilable t|o a code|
|00005d00| 20 72 65 73 6f 75 72 63 | 65 2e 0d 0d 34 2f 31 33 | resourc|e...4/13|
|00005d10| 2f 39 33 09 64 67 70 09 | 52 65 6d 6f 76 65 64 20 |/93.dgp.|Removed |
|00005d20| 36 38 30 32 30 20 72 65 | 71 75 69 72 65 6d 65 6e |68020 re|quiremen|
|00005d30| 74 20 62 79 20 74 72 61 | 6e 73 6c 61 74 69 6e 67 |t by tra|nslating|
|00005d40| 20 61 6e 20 69 6e 64 65 | 78 65 64 20 61 64 64 20 | an inde|xed add |
|00005d50| 69 6e 20 4c 6f 61 64 4d | 61 63 49 49 63 69 20 74 |in LoadM|acIIci t|
|00005d60| 6f 0d 43 2e 0d 0d 34 2f | 31 37 2f 39 33 20 64 67 |o.C...4/|17/93 dg|
|00005d70| 70 20 41 64 64 65 64 20 | 73 75 70 70 6f 72 74 20 |p Added |support |
|00005d80| 69 6e 20 47 65 74 43 61 | 72 64 42 61 73 65 20 66 |in GetCa|rdBase f|
|00005d90| 6f 72 20 6f 6c 64 20 4d | 61 63 20 49 49 20 63 6f |or old M|ac II co|
|00005da0| 6d 70 75 74 65 72 73 20 | 77 68 6f 73 65 20 52 4f |mputers |whose RO|
|00005db0| 4d 27 73 20 6f 6e 6c 79 | 20 0d 73 75 70 70 6f 72 |M's only| .suppor|
|00005dc0| 74 20 32 34 2d 62 69 74 | 20 4e 75 42 75 73 20 61 |t 24-bit| NuBus a|
|00005dd0| 64 64 72 65 73 73 69 6e | 67 2e 20 0d 0d 35 2f 31 |ddressin|g. ..5/1|
|00005de0| 38 2f 39 33 20 53 65 74 | 45 6e 74 72 69 65 73 51 |8/93 Set|EntriesQ|
|00005df0| 75 69 63 6b 6c 79 20 6e | 6f 77 20 72 65 73 70 65 |uickly n|ow respe|
|00005e00| 63 74 73 20 74 68 65 20 | 73 65 74 74 69 6e 67 20 |cts the |setting |
|00005e10| 6f 66 20 74 68 65 20 64 | 65 76 69 63 65 27 73 20 |of the d|evice's |
|00005e20| 67 72 61 79 2f 63 6f 6c | 6f 72 20 6d 6f 64 65 2c |gray/col|or mode,|
|00005e30| 20 0d 61 6e 64 20 6d 61 | 70 73 20 74 6f 20 67 72 | .and ma|ps to gr|
|00005e40| 61 79 20 69 66 20 69 6e | 20 74 68 65 20 64 65 76 |ay if in| the dev|
|00005e50| 69 63 65 20 69 73 20 69 | 6e 20 67 72 61 79 20 6d |ice is i|n gray m|
|00005e60| 6f 64 65 20 61 6e 64 20 | 70 69 78 65 6c 53 69 7a |ode and |pixelSiz|
|00005e70| 65 3c 3d 38 2e 20 43 68 | 61 6e 67 65 64 20 70 72 |e<=8. Ch|anged pr|
|00005e80| 6f 74 6f 74 79 70 65 0d | 6f 66 20 6d 61 63 6c 74 |ototype.|of maclt|
|00005e90| 73 65 74 20 74 6f 20 73 | 70 65 63 69 66 79 20 74 |set to s|pecify t|
|00005ea0| 68 65 20 72 65 64 2c 20 | 67 72 65 65 6e 2c 20 61 |he red, |green, a|
|00005eb0| 6e 64 20 62 6c 75 65 20 | 61 72 72 61 79 73 20 61 |nd blue |arrays a|
|00005ec0| 73 20 22 75 6e 73 69 67 | 6e 65 64 20 73 68 6f 72 |s "unsig|ned shor|
|00005ed0| 74 22 20 69 6e 73 74 65 | 61 64 20 6f 66 20 0d 22 |t" inste|ad of ."|
|00005ee0| 73 68 6f 72 74 22 2e 0d | 0d 37 2f 37 2f 39 33 09 |short"..|.7/7/93.|
|00005ef0| 64 67 70 09 44 69 73 61 | 62 6c 65 64 20 73 6f 6d |dgp.Disa|bled som|
|00005f00| 65 20 67 6c 6f 62 61 6c | 20 6f 70 74 69 6d 69 7a |e global| optimiz|
|00005f10| 61 74 69 6f 6e 73 20 62 | 65 63 61 75 73 65 20 54 |ations b|ecause T|
|00005f20| 48 49 4e 4b 20 43 20 36 | 20 77 69 6c 6c 0d 63 72 |HINK C 6| will.cr|
|00005f30| 61 73 68 20 77 68 69 6c | 65 20 63 6f 6d 70 69 6c |ash whil|e compil|
|00005f40| 69 6e 67 20 69 66 20 74 | 68 65 20 52 61 64 69 75 |ing if t|he Radiu|
|00005f50| 73 20 50 6f 77 65 72 56 | 69 65 77 20 69 73 20 70 |s PowerV|iew is p|
|00005f60| 72 65 73 65 6e 74 3a 20 | 22 21 67 6f 70 74 5f 69 |resent: |"!gopt_i|
|00005f70| 6e 64 75 63 74 69 6f 6e | 2c 21 67 6f 70 74 5f 6c |nduction|,!gopt_l|
|00005f80| 6f 6f 70 22 2e 0d 0d 37 | 2f 39 2f 39 33 09 64 67 |oop"...7|/9/93.dg|
|00005f90| 70 20 63 68 65 63 6b 20 | 66 6f 72 20 33 32 2d 62 |p check |for 32-b|
|00005fa0| 69 74 20 61 64 64 72 65 | 73 73 69 6e 67 20 63 61 |it addre|ssing ca|
|00005fb0| 70 61 62 69 6c 69 74 79 | 2e 0d 0d 36 2f 31 34 2f |pability|...6/14/|
|00005fc0| 39 34 09 64 67 70 09 63 | 61 6e 33 32 20 69 73 20 |94.dgp.c|an32 is |
|00005fd0| 6e 6f 77 20 63 6f 6d 70 | 75 74 65 64 20 62 79 20 |now comp|uted by |
|00005fe0| 63 61 6c 6c 69 6e 67 20 | 54 72 61 70 41 76 61 69 |calling |TrapAvai|
|00005ff0| 6c 61 62 6c 65 28 5f 53 | 77 61 70 4d 4d 55 4d 6f |lable(_S|wapMMUMo|
|00006000| 64 65 29 2c 20 77 68 69 | 63 68 20 0d 72 65 74 75 |de), whi|ch .retu|
|00006010| 72 6e 73 20 63 6f 72 72 | 65 63 74 20 61 6e 73 77 |rns corr|ect answ|
|00006020| 65 72 20 65 76 65 6e 20 | 6f 6e 20 4d 61 63 73 20 |er even |on Macs |
|00006030| 77 69 74 68 20 64 69 72 | 74 79 20 52 4f 4d 73 2e |with dir|ty ROMs.|
|00006040| 0d 0d 36 2f 31 34 2f 39 | 34 09 64 67 70 09 41 64 |..6/14/9|4.dgp.Ad|
|00006050| 64 65 64 20 63 61 6c 6c | 20 74 6f 20 53 77 61 70 |ded call| to Swap|
|00006060| 4d 4d 55 4d 6f 64 65 20 | 69 6e 20 4c 6f 61 64 43 |MMUMode |in LoadC|
|00006070| 6c 75 74 54 6f 62 79 2c | 20 62 65 63 61 75 73 65 |lutToby,| because|
|00006080| 20 69 74 20 73 65 65 6d | 65 64 20 6f 64 64 20 6e | it seem|ed odd n|
|00006090| 6f 74 20 74 6f 2e 0d 4c | 6f 61 64 43 6c 75 74 4d |ot to..L|oadClutM|
|000060a0| 61 63 49 49 63 69 20 73 | 74 69 6c 6c 20 64 6f 65 |acIIci s|till doe|
|000060b0| 73 6e 27 74 2c 20 62 65 | 63 61 75 73 65 20 74 68 |sn't, be|cause th|
|000060c0| 65 20 76 69 64 65 6f 20 | 62 75 66 66 65 72 20 69 |e video |buffer i|
|000060d0| 73 20 69 6e 20 6d 65 6d | 6f 72 79 2e 0d 0d 36 2f |s in mem|ory...6/|
|000060e0| 33 30 2f 39 34 20 64 67 | 70 20 55 70 64 61 74 65 |30/94 dg|p Update|
|000060f0| 64 20 74 68 65 20 64 6f | 63 75 6d 65 6e 74 61 74 |d the do|cumentat|
|00006100| 69 6f 6e 2e 0d 0d 37 2f | 32 37 2f 39 34 20 64 67 |ion...7/|27/94 dg|
|00006110| 70 20 4d 6f 76 65 64 20 | 74 68 65 20 6c 69 73 74 |p Moved |the list|
|00006120| 20 6f 66 20 63 6f 6d 70 | 61 74 69 62 6c 65 20 64 | of comp|atible d|
|00006130| 65 76 69 63 65 73 20 66 | 72 6f 6d 20 74 68 65 20 |evices f|rom the |
|00006140| 22 56 69 64 65 6f 20 73 | 79 6e 63 68 22 20 64 6f |"Video s|ynch" do|
|00006150| 63 75 6d 65 6e 74 0d 74 | 6f 20 68 65 72 65 2c 20 |cument.t|o here, |
|00006160| 61 74 20 74 68 65 20 74 | 6f 70 20 6f 66 20 74 68 |at the t|op of th|
|00006170| 65 20 66 69 6c 65 2e 0d | 0d 37 2f 32 39 2f 39 34 |e file..|.7/29/94|
|00006180| 20 64 67 70 20 4d 61 64 | 65 20 75 73 65 20 6f 66 | dgp Mad|e use of|
|00006190| 20 74 68 65 20 61 73 6d | 20 64 69 72 65 63 74 69 | the asm| directi|
|000061a0| 76 65 20 63 6f 6e 64 69 | 74 69 6f 6e 61 6c 20 6f |ve condi|tional o|
|000061b0| 6e 20 54 48 49 4e 4b 5f | 43 2c 20 66 6f 72 20 63 |n THINK_|C, for c|
|000061c0| 6f 6d 70 61 74 69 62 69 | 6c 69 74 79 0d 77 69 74 |ompatibi|lity.wit|
|000061d0| 68 20 6f 74 68 65 72 20 | 63 6f 6d 70 69 6c 65 72 |h other |compiler|
|000061e0| 73 2e 20 43 68 61 6e 67 | 65 64 20 4c 6f 61 64 43 |s. Chang|ed LoadC|
|000061f0| 6c 75 74 78 38 32 34 47 | 43 28 29 20 74 6f 20 75 |lutx824G|C() to u|
|00006200| 73 65 20 69 74 73 20 43 | 20 69 6e 73 74 65 61 64 |se its C| instead|
|00006210| 20 6f 66 20 69 74 73 20 | 61 73 6d 20 63 6f 64 65 | of its |asm code|
|00006220| 2e 20 0d 48 6f 77 65 76 | 65 72 2c 20 49 20 64 6f |. .Howev|er, I do|
|00006230| 6e 27 74 20 6b 6e 6f 77 | 20 69 66 20 74 68 65 20 |n't know| if the |
|00006240| 43 20 63 6f 64 65 20 68 | 61 73 20 62 65 65 6e 20 |C code h|as been |
|00006250| 74 65 73 74 65 64 2e 20 | 47 65 74 43 61 72 64 54 |tested. |GetCardT|
|00006260| 79 70 65 28 29 20 72 65 | 74 75 72 6e 73 20 6e 6f |ype() re|turns no|
|00006270| 6e 7a 65 72 6f 0d 6f 6e | 6c 79 20 69 66 20 74 68 |nzero.on|ly if th|
|00006280| 65 20 63 61 72 64 20 69 | 73 20 73 75 70 70 6f 72 |e card i|s suppor|
|00006290| 74 65 64 20 62 79 20 74 | 68 65 20 63 6f 6d 70 69 |ted by t|he compi|
|000062a0| 6c 65 64 20 63 6f 64 65 | 20 28 69 2e 65 2e 20 50 |led code| (i.e. P|
|000062b0| 72 6f 43 6f 6c 6f 72 2c | 20 51 75 61 64 72 61 2c |roColor,| Quadra,|
|000062c0| 20 61 6e 64 20 4d 61 63 | 0d 49 49 63 69 20 61 6e | and Mac|.IIci an|
|000062d0| 64 20 49 49 73 69 20 61 | 72 65 20 72 65 63 6f 67 |d IIsi a|re recog|
|000062e0| 6e 69 7a 65 64 20 6f 6e | 6c 79 20 69 66 20 74 68 |nized on|ly if th|
|000062f0| 69 73 20 66 69 6c 65 20 | 69 73 20 63 6f 6d 70 69 |is file |is compi|
|00006300| 6c 65 64 20 62 79 20 54 | 48 49 4e 4b 20 43 2e 29 |led by T|HINK C.)|
|00006310| 0d 0d 31 2f 31 33 2f 39 | 35 20 64 67 70 20 41 64 |..1/13/9|5 dgp Ad|
|00006320| 64 65 64 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 2c |ded info|rmation,|
|00006330| 20 61 62 6f 76 65 2c 20 | 66 72 6f 6d 20 52 68 65 | above, |from Rhe|
|00006340| 61 20 45 73 6b 65 77 20 | 61 62 6f 75 74 20 74 68 |a Eskew |about th|
|00006350| 65 20 52 61 73 74 65 72 | 4f 70 73 20 38 4c 2e 0d |e Raster|Ops 8L..|
|00006360| 0d 31 2f 31 36 2f 39 35 | 20 64 67 70 20 41 64 64 |.1/16/95| dgp Add|
|00006370| 65 64 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 2c 20 |ed infor|mation, |
|00006380| 61 62 6f 76 65 2c 20 66 | 72 6f 6d 20 42 65 6e 20 |above, f|rom Ben |
|00006390| 53 69 6e 67 65 72 20 61 | 62 6f 75 74 20 74 68 65 |Singer a|bout the|
|000063a0| 20 51 75 61 64 72 61 20 | 38 34 30 41 56 20 26 20 | Quadra |840AV & |
|000063b0| 36 36 30 41 56 2e 0d 41 | 64 64 65 64 20 4c 6f 61 |660AV..A|dded Loa|
|000063c0| 64 43 6c 75 74 51 75 61 | 64 72 61 41 56 28 29 20 |dClutQua|draAV() |
|000063d0| 62 61 73 65 64 20 6f 6e | 20 42 65 6e 27 73 20 63 |based on| Ben's c|
|000063e0| 6f 64 65 2e 0d 0d 35 2f | 32 33 2f 39 35 20 64 67 |ode...5/|23/95 dg|
|000063f0| 70 20 41 70 70 6c 65 20 | 63 68 61 6e 67 65 64 20 |p Apple |changed |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.